GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / FindCommonParent Method
In This Topic
    FindCommonParent Method
    In This Topic
    Find the GoGroup that is closest parent group for this object and another.
    Syntax
    public static GoObject FindCommonParent( 
       GoObject a,
       GoObject b
    )

    Parameters

    a
    b

    Return Value

    This will return null if either argument is null or if there is no parent group that contains both objects. If a is the same object as b, it will return it. If a is a parent of b, it will return a. If b is a parent of a, it will return b.
    See Also