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

實作

適用於