System.Windows.Forms.ToolStripItemCollection.Remove Method

Removes the specified item from the collection.

Syntax

public void Remove (ToolStripItem value)

Parameters

value
The System.Windows.Forms.ToolStripItem to remove from the System.Windows.Forms.ToolStripItemCollection.

Remarks

When a System.Windows.Forms.ToolStripItem is removed from the System.Windows.Forms.ToolStripItemCollection, all subsequent controls are moved up one position in the collection.

You can also remove a System.Windows.Forms.ToolStripItem by using the ToolStripItemCollection.RemoveAt(int) method, or remove all controls by using the ToolStripItemCollection.Clear method.

To add new System.Windows.Forms.ToolStripItem objects to the collection, use the ToolStripItemCollection.Add(ToolStripItem) or ToolStripItemCollection.AddRange(ToolStripItem[]) methods.

Requirements

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