Determines the index value that represents the position of the specified System.Web.UI.WebControls.ListItem in the collection.
- item
- A System.Web.UI.WebControls.ListItem to search for in the collection.
The index position of the specified System.Web.UI.WebControls.ListItem in the collection.
Use the ListItemCollection.IndexOf(ListItem) method to determine the index value of the System.Web.UI.WebControls.ListItem specified by the item parameter in the collection. If an item with this criteria is not found in the collection, -1 is returned.