CheckedListBox.CheckedIndexCollection.Contains(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定指定的索引是否位于集合中。
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 。