GoDiagram Web Reference
AddCollection Method (GoGroup)

a collection of GoObjects
whether to make sure all connected links belong to the proper subgraph or layer; if true, this will call GoSubGraphBase.GoSubGraphBase.ReparentAllLinksToSubGraphs
Move some objects into this group, as immediate children of this group, even if they are part of other groups in this same layer.
Syntax
'Declaration
 
Public Overridable Function AddCollection( _
   ByVal coll As IGoCollection, _
   ByVal reparentLinks As Boolean _
) As IGoCollection
public virtual IGoCollection AddCollection( 
   IGoCollection coll,
   bool reparentLinks
)

Parameters

coll
a collection of GoObjects
reparentLinks
whether to make sure all connected links belong to the proper subgraph or layer; if true, this will call GoSubGraphBase.GoSubGraphBase.ReparentAllLinksToSubGraphs
Remarks

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.

Requirements

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

See Also

Reference

GoGroup Class
GoGroup Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback