Düzenle

Aracılığıyla paylaş


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);
int IList.IndexOf (object? item);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (item As Object) As Integer Implements IList.IndexOf

Parameters

item
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