Редагувати

Поділитися через


ListView.SelectedIndexCollection.IList.IndexOf(Object) Method

Definition

Returns the index in the ListView.SelectedIndexCollection. The ListView.SelectedIndexCollection contains the indexes of selected items in the ListView.ListViewItemCollection of the ListView control.

This API supports the product infrastructure and is not intended to be used directly from your code.

 virtual int System.Collections.IList.IndexOf(System::Object ^ selectedIndex) = System::Collections::IList::IndexOf;
int IList.IndexOf (object selectedIndex);
int IList.IndexOf (object? selectedIndex);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (selectedIndex As Object) As Integer Implements IList.IndexOf

Parameters

selectedIndex
Object

The zero-based index from the ListView.ListViewItemCollection to locate in the collection.

Returns

The index of value if found in the list; otherwise, -1.

Implements

Applies to