version 1
CT Draw line (area; left; top; right; bottom; arrowhead) Longint
| Parameter | Type | Description | |
| area | Longint | 4D Chart area | |
| left | Real | Horizontal position of start (in points) | |
| top | Real | Vertical position of start (in points) | |
| right | Real | Horizontal position of end (in points) | |
| bottom | Real | Vertical position of end (in points) | |
| arrowhead | Integer | Arrow location code (see table) | |
| Function result | Longint | The new object's Object ID |
Description
CT Draw line creates a new line object in area and returns the new object's Object ID. The object is positioned according to the left, top, right, and bottom coordinates.
The following are the codes for the arrowhead parameter:
| Code | Location | |
| -1 | Use default | |
| 0 | None | |
| 1 | At start | |
| 2 | At end | |
| 3 | Both ends |
Example
The following method draws a line with arrowheads in the chart area:
$Line:=CT Draw line (Area;10;10;50;50;3)