Technical Reference > Graphics Builder Automation Interface > Object Drawing and Property Functions > DrawNumber

DrawNumber

Places a number object on the page at the specified location.

Syntax

DrawNumber(XPosition, YPosition)

XPosition:

Distance in pixels from the left of the page to the point where you would like the number object to be placed.

YPosition:

Distance in pixels from the top of the page to the point where you would like the number object to be placed.

Return Value

0 (zero) if successful, otherwise an error is returned.

Note: For details on handling return and error values, see Error Handling.

Related Functions

DrawLine, DrawEllipse, DrawRectangle, DrawPolygonStart, DrawPolygonLine, DrawPolygonEnd, DrawPipeStart, DrawPipeSection, DrawPipeEnd, DrawText, DrawButton, DrawSymbolSet, DrawTrend, DrawCicodeObject

Example

GraphicsBuilder.DrawNumber 500, 100