Determines the index of the specified System.Web.UI.WebControls.TreeNodeBinding object in the collection.
- binding
- The System.Web.UI.WebControls.TreeNodeBinding to locate.
The zero-based index of the first occurrence of binding within the System.Web.UI.WebControls.TreeNodeBindingCollection, if found; otherwise, -1.
Use the TreeNodeBindingCollection.IndexOf(TreeNodeBinding) method to determine the zero-based index of the specified System.Web.UI.WebControls.TreeNodeBinding object in the System.Web.UI.WebControls.TreeNodeBindingCollection object. If the node is not in the collection, the method returns -1.
If the specified System.Web.UI.WebControls.TreeNodeBinding object appears multiple times in the collection, the index of the first occurrence is returned.