ToolStripItemCollection.Contains Method (ToolStripItem)

 

Determines whether the specified item is a member of the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public bool Contains(
	ToolStripItem value
)

Parameters

value
Type: System.Windows.Forms.ToolStripItem

The ToolStripItem to search for in the ToolStripItemCollection.

Return Value

Type: System.Boolean

true if the ToolStripItem is a member of the current ToolStripItemCollection; otherwise, false.

.NET Framework
Available since 2.0
Return to top
Show: