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

定义

检查是否选中了与 ListViewItem 对应的索引。

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

参数

checkedIndex
Object

要在 ListView.CheckedIndexCollection 中查找的索引。

返回

如果在 ListView.CheckedIndexCollection 中找到该索引,则为 true;否则为 false

实现

适用于