drawRectangle
Contents
[
Hide
]drawRectangle(pinX, pinY, width, height) (1 of 2)
The process of drawing rectangle.
| Parameter | Type | Description |
|---|---|---|
| pinX | float | Specifies the x-coordinate of the shape’s pin (center of rotation) in relation to the page. |
| pinY | float | Specifies the y-coordinate of the shape’s pin (center of rotation) in relation to the page. |
| width | float | Specifies the width of the shape |
| height | float | Specifies 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.
| Parameter | Type | Description |
|---|---|---|
| x1 | float | Specifies the x-coordinate representing the lower-left corner of the rectangle |
| y1 | float | Specifies the y-coordinate representing the lower-left corner of the rectangle |
| x2 | float | Specifies the x-coordinate representing the top-right corner of the rectangle |
| y2 | float | Specifies 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.