drawLine
Contents
[
Hide
]drawLine(beginX, beginY, endX, endY) (1 of 2)
The process of drawing a single line.
| Parameter | Type | Description |
|---|---|---|
| beginX | float | Specifies the begin x-coordinate of the shape’s position in relation to the page. |
| beginY | float | Specifies the begin y-coordinate of the shape’s position in relation to the page. |
| endX | float | Specifies the end x-coordinate of the shape’s position in relation to the page. |
| endY | float | Specifies 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.
| 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 |
| xyArray | Number Array | An 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.