%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
GetEntitiesFromBox Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : GetEntitiesFromBox Method
xmin
The x value of the lower left point of the box in pixel coordinates.
ymin
The y value of the lower left point of the box in pixel coordinates.
xmax
The x value of the upper right point of the box in pixel coordinates.
ymax
The y value of the upper right point of the box in pixel coordinates.
Returns an array of vdraw entities that cross the specified box. Even if a small part of an entity lies inside the box, it is added in the array. The first two parameters define the first point of the box and the rest define the second point in pixel coordinates.

Syntax

JScript 
public function GetEntitiesFromBox( 
   xmin : int,
   ymin : int,
   xmax : int,
   ymax : int
) : Object;

Parameters

xmin
The x value of the lower left point of the box in pixel coordinates.
ymin
The y value of the lower left point of the box in pixel coordinates.
xmax
The x value of the upper right point of the box in pixel coordinates.
ymax
The y value of the upper right point of the box in pixel coordinates.

Return Value

An array of the entities crossing the box or an empty array if no entity is found.

See Also