GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoGroup Class / AddCollection Method
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
In This Topic
    AddCollection Method (GoGroup)
    In This Topic
    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
    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.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.

    See Also