CT GET BOUNDARY

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 1


CT GET BOUNDARY (area; scope; left; top; right; bottom)

ParameterTypeDescription
areaLongint4D Chart area
scopeLongintScope of the command
-1 = All
0 = Selected object
>0 = Object ID
leftRealReceives horizontal position of start (in points)
topRealReceives vertical position of start (in points)
rightRealReceives horizontal position of end (in points)
bottomRealReceives 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

CT GET AREA BOUNDARY.


4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next