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

定義

判斷指定的索引是否位於 CheckedListBox.CheckedIndexCollection 中。Determines whether the specified index is located within the CheckedListBox.CheckedIndexCollection. 如需這個成員的說明,請參閱 Contains(Object)For a description of this member, see Contains(Object).

 virtual bool System.Collections.IList.Contains(System::Object ^ index) = System::Collections::IList::Contains;
bool IList.Contains (object index);
Function Contains (index As Object) As Boolean Implements IList.Contains

參數

index
Object

要放置在集合中的索引。The index to locate in the collection.

傳回

如果 trueCheckedListBox.ObjectCollection 中的指定索引為這個集合中的項目,則為 CheckedListBox,否則為 falsetrue if the specified index from the CheckedListBox.ObjectCollection for the CheckedListBox is an item in this collection; otherwise, false.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 CheckedListBox.CheckedIndexCollection 執行個體轉換成 IList 介面時,才能使用這個成員。It can be used only when the CheckedListBox.CheckedIndexCollection instance is cast to an IList interface.

適用於