4D Chart v13

CT GET BOUNDARY

Home

 
4D Chart v13
CT GET BOUNDARY

CT GET BOUNDARY 


 

CT GET BOUNDARY ( area ; scope ; left ; top ; right ; bottom ) 
Parameter Type   Description
area  Longint in 4D Chart area
scope  Longint in Scope of the command -1 = All 0 = Selected object >0 = Object ID
left  Real in Receives horizontal position of start (in points)
top  Real in Receives vertical position of start (in points)
right  Real in Receives horizontal position of end (in points)
bottom  Real in Receives vertical position of end (in points)

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)

 
PROPERTIES 

Product: 4D Chart
Theme: CT Objects
Number: 14567

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT GET AREA BOUNDARY