ToolBar.ToolBarButtonCollection.IList.Contains(Object) 方法

定義

判斷此集合是否包含特定的值。

 virtual bool System.Collections.IList.Contains(System::Object ^ button) = System::Collections::IList::Contains;
bool IList.Contains (object button);
abstract member System.Collections.IList.Contains : obj -> bool
override this.System.Collections.IList.Contains : obj -> bool
Function Contains (button As Object) As Boolean Implements IList.Contains

參數

button
Object

要在集合中尋找的項目。

傳回

如果在集合中找到該項目,則為 true,否則為 false

實作

備註

這個成員是明確介面成員實作, 它只有在 ToolBar.ToolBarButtonCollection 轉型成 IList 介面時才能使用。

適用於