CheckedListBox.CheckedItemCollection.Contains(Object) 方法

定义

确定指定的项是否位于集合中。

public:
 virtual bool Contains(System::Object ^ item);
public bool Contains(object item);
public bool Contains(object? item);
abstract member Contains : obj -> bool
override this.Contains : obj -> bool
Public Function Contains (item As Object) As Boolean

参数

item
Object

项集合中的对象。

返回

true 如果项位于集合中,则为否则,为 false.

实现

注解

此方法确定集合中的 Items 对象是否在集合中 CheckedItems

适用于