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

DrawPolygonLine

Draws a line on the active page that forms part of a polygon. To work successfully, this function needs to have a starting point defined by the function DrawPolygonStart or a previous incidence of itself.

Syntax

DrawPolygonLine(XPosition, YPosition)

XPosition:

Distance in pixels from the left of the page to the point where you would like the line to end.

YPosition:

Distance in pixels from the top of the page to the point where you would like the line to end.

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

DrawPolygonStart, DrawPolygonEnd

Example

GraphicsBuilder.DrawPolygonStart 50, 290
GraphicsBuilder.DrawPolygonLine 200, 350
GraphicsBuilder.DrawPolygonLine 350, 250
GraphicsBuilder.DrawPolygonLine 400, 350
GraphicsBuilder.DrawPolygonEnd

Published June 2018