Edit

Share via


ListView.SelectedIndexCollection.IList.Contains(Object) Method

Definition

Determines whether the specified item is located in the collection.

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

Parameters

selectedIndex
Object

The index to locate in the collection.

Returns

true if the specified index from the ListView.ListViewItemCollection for the ListView is an item in the collection; otherwise, false.

Implements

Applies to