IndexOf Method

Determines the index of a TreeNode within the TreeNodeCollection.


Visual Basic  Public  Function 
IndexOf( ByVal oNode As TreeNode ) As int
C# public  int 
IndexOf(TreeNode oNode );
Managed C++ public:  int 
IndexOf(TreeNode oNode );
JScript public  function
IndexOf(oNode : TreeNode );


oNode Required. TreeNode object to search for in the collection.

Return Value

int. The index of the TreeNode object.

Applies To


See Also

Internet Explorer WebControls, About the TreeView WebControl