ToolStripItemCollection::RemoveByKey Method (String^)
.NET Framework (current version)
Removes the item that has the specified key.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- key
-
Type:
System::String^
The key of the ToolStripItem to remove.
| Exception | Condition |
|---|---|
| NotSupportedException | The ToolStripItemCollection is read-only. |
The key parameter value corresponds to the ToolStripItem::Name property.
.NET Framework
Available since 2.0
Available since 2.0
Show: