GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutTree Class / SortTreeNodeChildren Method
In This Topic
    SortTreeNodeChildren Method
    In This Topic
    Sort the GoLayoutTreeNode.Children of a node.
    Syntax
    protected virtual void SortTreeNodeChildren( 
       GoLayoutTreeNode n
    )

    Parameters

    n
    Remarks

    This method should not walk the tree, since it is called for each GoLayoutTreeNode in a breadth-first manner starting at a root.

    However, if GoLayoutTreeNode.Alignment is BusBranching, this will be called before AssignTreeNodeValues. The "BusBranching" alignment depends on inheriting the GoLayoutTreeNode.Angle, which in turn depends on the sort order, hence sorting must be performed first. The difference is that when "BusBranching" the initialization pass has not yet finished, so informational properties have not yet been computed when this method is called.

    See Also