ListView::CheckedListViewItemCollection::IndexOf Method (ListViewItem^)
.NET Framework (current version)
Returns the index within the collection of the specified item.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- item
-
Type:
System.Windows.Forms::ListViewItem^
A ListViewItem representing the item to locate in the collection.
Once you know that an item is located within the collection (using the Contains method), you can use the IndexOf method to determine where a specific item within the ListView::ListViewItemCollection for the ListView is stored within the ListView::CheckedListViewItemCollection.
.NET Framework
Available since 1.1
Available since 1.1
Show: