GetNodeFromIndex Method

Returns the TreeNode object at the specified index.

Syntax

Visual Basic  Public  Function 
GetNodeFromIndex( ByVal sIndex As string ) As TreeNode
C# public  TreeNode 
GetNodeFromIndex(string sIndex );
Managed C++ public:  TreeNode 
GetNodeFromIndex(string sIndex );
JScript public  function
GetNodeFromIndex(sIndex : string );

Parameters

sIndex Required. string. The index of the node.

Return Value

Returns the TreeNode object at the specified index.

Remarks

The index is built by concatenating the ordinal number of the parent node at each level, counting through the tree from 0 down to the selected node, and delimiting each level with a dot (.). The upper-most node in the top level of the tree is 0; the second node is 1, and so on. The node immediately following the first top-level node is 0.0; the second is 0.1, and so on. For example, for the index value 1.3.2: 1 is the second node at the top level of the tree; 3 is the fourth node under node 1; and 2 is the third node under node 1.3 and also the selected node.

Applies To

TREEVIEW

See Also

Internet Explorer WebControls, About the TreeView WebControl