Northwoods.Go.Layout Assembly > Northwoods.Go.Layout Namespace > GoLayoutTree Class : SortTreeNodeChildren Method |
'Declaration Protected Overridable Sub SortTreeNodeChildren( _ ByVal n As GoLayoutTreeNode _ )
protected virtual void SortTreeNodeChildren( GoLayoutTreeNode n )
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2