drawRectangle

drawRectangle(pinX, pinY, width, height) (1 of 2)

The process of drawing rectangle.

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

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


drawRectangle(x1, y1, x2, y2) (2 of 2)

The process of drawing rectangle.

ParameterTypeDescription
x1floatSpecifies the x-coordinate representing the lower-left corner of the rectangle
y1floatSpecifies the y-coordinate representing the lower-left corner of the rectangle
x2floatSpecifies the x-coordinate representing the top-right corner of the rectangle
y2floatSpecifies the y-coordinate representing the top-right corner of the rectangle

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