ToolStripItemCollection.Contains(ToolStripItem) 方法

定義

判斷指定項目是否為集合的成員。Determines whether the specified item is a member of the collection.

public:
 bool Contains(System::Windows::Forms::ToolStripItem ^ value);
public bool Contains (System.Windows.Forms.ToolStripItem value);
member this.Contains : System.Windows.Forms.ToolStripItem -> bool
Public Function Contains (value As ToolStripItem) As Boolean

參數

value
ToolStripItem

要在 ToolStripItem 中搜尋的 ToolStripItemCollectionThe ToolStripItem to search for in the ToolStripItemCollection.

傳回

Boolean

如果 ToolStripItem 是目前 ToolStripItemCollection 的成員,則為 true,否則為 falsetrue if the ToolStripItem is a member of the current ToolStripItemCollection; otherwise, false.

適用於