View. Checked Index Collection. Index Of(Int32) Method
public: int IndexOf(int checkedIndex);
public int IndexOf (int checkedIndex);
member this.IndexOf : int -> int
Public Function IndexOf (checkedIndex As Integer) As Integer
The zero-based index from the ListView.ListViewItemCollection to locate in the collection.
The zero-based index in the collection where the specified index of the ListView.ListViewItemCollection is located within the ListView.CheckedIndexCollection; otherwise, -1 if the index is not located in the collection.
Once you know that an item is in the checked index collection (using the Contains method), you can use the IndexOf method to determine the position of the index in the ListView.CheckedIndexCollection.