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.

適用於