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