GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoGroup Class / LayoutChildren Method
In This Topic
    LayoutChildren Method (GoGroup)
    In This Topic
    Reposition this group's children to achieve a particular appearance.
    Syntax
    public virtual void LayoutChildren( 
       GoObject childchanged
    )

    Parameters

    childchanged
    Remarks

    By default this method does nothing. However, this method is frequently overridden.

    Implementations of this method probably should not refer, directly or indirectly, to this group's GoObject.GoObject.Bounds property. Instead, you should just position and size the children based on the bounds of the children (not this group's bounds), and let this group's bounds be determined by the union of the bounds of the children.

    For groups that may have many children, overrides will often check the GoObject.GoObject.Initializing flag. If true, this method usually does nothing; later when all the changes have been performed is that flag set to false and this method is called explicitly with a null argument.

    See Also