System.Windows.Forms.ToolStripItemCollection.ContainsKey Method

Determines whether the collection contains an item with the specified key.

Syntax

public virtual bool ContainsKey (string key)

Parameters

key
The key to locate in the System.Windows.Forms.ToolStripItemCollection.

Returns

true if the System.Windows.Forms.ToolStripItemCollection contains a System.Windows.Forms.ToolStripItem with the specified key; otherwise, false.

Remarks

The key parameter value corresponds to the ToolStripItem.Name property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0