語言

CheckedListBox.CheckedIndexCollection.Contains(Int32) 方法

定義

判斷指定的索引是否位於集合中。

public:
 bool Contains(int index);
public bool Contains(int index);
member this.Contains : int -> bool
Public Function Contains (index As Integer) As Boolean

參數

index
Int32

索引可在本收藏中找到。

傳回

true 若 中 CheckedListBox.ObjectCollection 指定的索引是此集合中的項目;否則, false。

備註

你可以用這個方法判斷集合中的索引 Items 是否在集合 CheckedIndices 中。

適用於