%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
GroupsManager Property
See Also  Example
vdWebLibrary Namespace > vdrawObj Class : GroupsManager Property
Returns an vdgroupsManager object that manage groups of the selected document

Syntax

JScript 
public function get GroupsManager : vdgroupsManager

Example

For example we create three lines in the same group.Then we remove line2 from the group and we now move the group with line1 and line3.
C#Copy Code
  
var line1 = vdcanvas.AddLine([0, 0, 0], [1, 1, 0],true); 
 vdcanvas.GroupsManager.AddItem("group1", line1); 
 
 var line2 = vdcanvas.AddLine([0, 0, 0], [1, 0, 0], true); 
 vdcanvas.GroupsManager.AddItem("group1", line2); 
 
 var line3 = vdcanvas.AddLine([0, 0, 0], [0, 1, 0], true); 
 vdcanvas.GroupsManager.AddItem("group1", line3); 
 
 vdcanvas.GroupsManager.RemoveItem("group1", line2); 
 
  vdcanvas.CmdMove();

See Also