%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
GetEntityItem Method
See Also  Example
vdWebLibrary Namespace > vdrawObj Class : GetEntityItem Method
item
The object handle as string.
Returns an entity object from a handle string

Syntax

JScript 
public function GetEntityItem( 
   item : String
) : Object;

Parameters

item
The object handle as string.

Return Value

An entity object from a handle string

Example

C#Copy Code
  
var count = 0; 
var vdcanvas = vdmanager.vdrawObject('display'); 
var activelayout = vdcanvas.GetActiveLayout(); 
for (var k = 0; k < activelayout.Entities.Items.length; k++) { 
    var fig = vdcanvas.GetEntityItem(activelayout.Entities.Items[k]); 
    if (fig.HighLight != null && fig.HighLight == true) count++; 
}

See Also