Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace > GoGroup Class : AddCollection Method |
'Declaration Public Overridable Function AddCollection( _ ByVal coll As IGoCollection, _ ByVal reparentLinks As Boolean _ ) As IGoCollection
public virtual IGoCollection AddCollection( IGoCollection coll, bool reparentLinks )
This method tries to preserve the links connecting any ports of the objects being moved into this group. Of course, none of the objects to be added to this group may be the group itself nor a parent of this group.
Just as with the Add method, you may find that you will want to set the GoObject.Selectable property to false for each of the objects being added to this group. The need for this depends on the behavior you want in your application.
This method is normally called on instances of GoSubGraphBase. If calling this method on a group that is not a subgraph, you will probably want to specify the value of reparentLinks to be false, since otherwise any links that you think you are adding to the group will be taken right out again to be added to the enclosing subgraph or to be a top-level object.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2