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

适用于