System.Windows.Forms.ToolStripItemCollection.RemoveByKey Method

Removes the item that has the specified key.

Syntax

public virtual void RemoveByKey (string key)

Parameters

key
The key of the System.Windows.Forms.ToolStripItem to remove.

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