Table of Contents

Property GroupsManager

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

GroupsManager

Returns an vdgroupsManager object that manage groups of the selected document

public vdgroupsManager GroupsManager { get; }

Property Value

vdgroupsManager

Examples

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.

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();