GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoSubGraph Class / CollapseChild Method
the expected bounds of the collapsed subgraph, without the collapsed margin
In This Topic
    CollapseChild Method
    In This Topic
    Center all the objects that aren't links and make everything invisible (besides Label and Handle and Port and CollapsedObject).
    Syntax
    protected virtual void CollapseChild( 
       GoObject child,
       RectangleF sgrect
    )

    Parameters

    child
    sgrect
    the expected bounds of the collapsed subgraph, without the collapsed margin
    Remarks

    Child subgraphs are collapsed first, of course, and if they had been expanded, their WasExpanded property is set to true. If the child object has a SelectionObject, that is centered; otherwise the whole child is centered.

    You may want to override this method in order to customize the sizing of child objects when the subgraph is collapsed. If you do this, you will also want to override ExpandChild to restore the original size, as saved in the SavedBounds hash table.

    See Also