drawLine

drawLine(beginX, beginY, endX, endY) (1 of 2)

The process of drawing a single line.

ParameterTypeDescription
beginXfloatSpecifies the begin x-coordinate of the shape’s position in relation to the page.
beginYfloatSpecifies the begin y-coordinate of the shape’s position in relation to the page.
endXfloatSpecifies the end x-coordinate of the shape’s position in relation to the page.
endYfloatSpecifies the end y-coordinate of the shape’s position in relation to the page.

Returns: The unique ID of the shape within shapes collection on the specified page.


drawLine(pinX, pinY, width, height, xyArray) (2 of 2)

The process of drawing line.

ParameterTypeDescription
pinXfloatSpecifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page.
pinYfloatSpecifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page.
widthfloatSpecifies the width of the shape
heightfloatSpecifies the height of the shape
xyArrayNumber ArrayAn array of alternating x and y values that defines points in the new shape

Returns: The unique ID of the shape within shapes collection on the specified page.