version 1
CT GET BOUNDARY (area; scope; left; top; right; bottom)
| Parameter | Type | Description | |
| area | Longint | 4D Chart area | |
| scope | Longint | Scope of the command | |
| -1 = All | |||
| 0 = Selected object | |||
| >0 = Object ID | |||
| left | Real | Receives horizontal position of start (in points) | |
| top | Real | Receives vertical position of start (in points) | |
| right | Real | Receives horizontal position of end (in points) | |
| bottom | Real | Receives vertical position of end (in points) |
Description
The CT GET BOUNDARY command returns in the left, top, right and bottom variables the boundary of the object(s) in area described by scope.
The boundary is the coordinates of the smallest rectangular region that contains the object(s).
If scope equals -1, CT GET BOUNDARY returns the boundary for all objects in the document.
If scope equals 0, CT GET BOUNDARY returns the boundary for the selected objects.
If scope is greater than 0, it must be equal to a specific object's ID, and that object's boundary is returned. If the object does not exist, CT GET BOUNDARY returns -32000 for each coordinate.
Example
The following line returns the selected object's boundary in the $left, $top; right, and $bottom variables.
CT GET BOUNDARY (Area;0;$left;$top;$right;$bottom)
See Also