ListView.ListViewItemCollection.IList.IndexOf(Object) ListView.ListViewItemCollection.IList.IndexOf(Object) ListView.ListViewItemCollection.IList.IndexOf(Object) Method

Definition

Returns the index within the collection of the specified item.

 virtual int System.Collections.IList.IndexOf(System::Object ^ item) = System::Collections::IList::IndexOf;
int IList.IndexOf (object item);
Function IndexOf (item As Object) As Integer Implements IList.IndexOf

Parameters

item
Object Object Object

A ListViewItem that represents the item to locate in the collection.

Returns

The zero-based index of the item if it is in the collection; otherwise, -1.

Implements

Applies to