ListView.SelectedIndexCollection.IList.Contains(Object) 方法

定义

确定指定项是否位于集合内。

 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

参数

selectedIndex
Object

要在集合中定位的索引。

返回

Boolean

如果 ListView.ListViewItemCollectionListView 中的指定索引是集合中的项,则为 true;否则为 false

实现

适用于