CheckedListBox.CheckedItemCollection.Contains(Object) 方法

定义

确定指定项是否位于集合内。Determines whether the specified item is located in the collection.

public:
 virtual bool Contains(System::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

项集合的一个对象。An object from the items collection.

返回

如果项在集合中,则为 true;否则为 falsetrue if item is in the collection; otherwise, false.

实现

注解

此方法确定Items集合CheckedItems中的对象是否在集合中。This method determines if an object from the Items collection is in the CheckedItems collection.

适用于