GoDiagram Win Reference
InitializeTreeNodeValues Method

Assign initial property values for a GoLayoutTreeNode.
Syntax
'Declaration
 
Protected Overridable Sub InitializeTreeNodeValues( _
   ByVal n As GoLayoutTreeNode _
) 
protected virtual void InitializeTreeNodeValues( 
   GoLayoutTreeNode n
)

Parameters

n
Remarks
The values may be inherited, so this method is called while propagating values from the root nodes. This method should not walk the tree, since it is called for each GoLayoutTreeNode in a depth-first manner starting at a root. You probably do not need to override this method, but if you do you should call first either the base method or GoLayoutTreeNode.CopyInheritedPropertiesFrom, since they assign most of the GoLayoutTreeNode property values used to influence the layout. Informational properties such as GoLayoutTreeNode.DescendentCount and GoLayoutTreeNode.MaxGenerationCount will not yet have been initialized by the time this method is called. It is more common to override AssignTreeNodeValues in order to modify a property or two to customize the layout at that node.

When the GoLayoutTreeNode.Alignment is BusBranching, this will modify the GoLayoutTreeNode.Angle appropriately depending on which side of the bus the vertex is on.

Requirements

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

See Also

Reference

GoLayoutTree Class
GoLayoutTree Members
AssignTreeNodeValues Method

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback