Extensibility > Graphics Builder Automation Interface > Object Drawing and Property Functions > DrawEllipse

DrawEllipse

Draws an ellipse on the active page.

Syntax

DrawEllipse(FromXPosition, FromYPosition, ToXPosition, ToYPosition)

FromXPosition:

Distance in pixels from the left hand side of the page to top left hand corner of the rectangle that will enclose the ellipse.

FromYPosition:

Distance in pixels from the top of the page to the top left hand corner of the rectangle that will enclose the ellipse.

ToXPosition:

Distance in pixels from the left hand side of the page to the bottom right hand corner of the rectangle that will enclose the ellipse.

ToYPosition:

Distance in pixels from the top of the page to the bottom-right hand corner of the rectangle that will enclose the ellipse.

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

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

Example

GraphicsBuilder.DrawEllipse 50, 70, 400, 200

Published June 2018