ToolStripItemCollection.Contains(ToolStripItem) ToolStripItemCollection.Contains(ToolStripItem) ToolStripItemCollection.Contains(ToolStripItem) ToolStripItemCollection.Contains(ToolStripItem) Method

定义

确定指定项是否为集合的成员。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

参数

返回

如果 ToolStripItem 是当前 ToolStripItemCollection 的成员,则为 true;否则为 falsetrue if the ToolStripItem is a member of the current ToolStripItemCollection; otherwise, false.

适用于