ESRI.ArcGIS.ADF.Web.UI.WebControls
GetTopMostParentNode Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > TreeViewPlusNodeCollection Class : GetTopMostParentNode Method




node
The node whose top-most node to find.
Gets the top-most parent in the node hierarchy of the current node.

Syntax

Visual Basic (Declaration) 
Public Function GetTopMostParentNode( _
   ByVal node As TreeViewPlusNode _
) As TreeViewPlusNode
Visual Basic (Usage)Copy Code
Dim instance As TreeViewPlusNodeCollection
Dim node As TreeViewPlusNode
Dim value As TreeViewPlusNode
 
value = instance.GetTopMostParentNode(node)
C# 
public TreeViewPlusNode GetTopMostParentNode( 
   TreeViewPlusNode node
)

Parameters

node
The node whose top-most node to find.

Return Value

Node at the top of the node hierarchy just below the TreeViewPlus.

Remarks

This will return the TreeViewPlusNode that is highest in the node's parent hierarchy. If the node is attached to a TreeViewPlus, the node will be the one just below the TreeViewPlus in the hierarchy. If the node has no Parent, the input node will be returned.

See Also

© 2010 All Rights Reserved.