GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoSubGraphBase Class / ReparentToCommonSubGraph Method
the GoObject to reparent
an object that may belong to a GoSubGraphBase
another object that may belong to a GoSubGraphBase
whether to add the obj at the beginning of the list of the subgraph's children (thus behind all other subgraph children), or at the end of the list (thus appearing in front of all the other subgraph children)
the GoLayer to which the obj should be added, if there is no common parent GoSubGraphBase for child1 and child2
In This Topic
    ReparentToCommonSubGraph Method
    In This Topic
    Change the Parent of an object to be the common subgraph that contains two given objects, or if there is no such subgraph, add the object to the given layer.
    Syntax
    public static void ReparentToCommonSubGraph( 
       GoObject obj,
       GoObject child1,
       GoObject child2,
       bool behind,
       GoLayer layer
    )

    Parameters

    obj
    the GoObject to reparent
    child1
    an object that may belong to a GoSubGraphBase
    child2
    another object that may belong to a GoSubGraphBase
    behind
    whether to add the obj at the beginning of the list of the subgraph's children (thus behind all other subgraph children), or at the end of the list (thus appearing in front of all the other subgraph children)
    layer
    the GoLayer to which the obj should be added, if there is no common parent GoSubGraphBase for child1 and child2
    Remarks
    All of the arguments to this method should be non-null.
    See Also