System.Windows.Forms.ToolStripItemCollection: Method Members

The methods of System.Windows.Forms.ToolStripItemCollection are listed below. For a list of all members, see the ToolStripItemCollection Members list.

See Also: Inherited members from System.Windows.Forms.Layout.ArrangedElementCollection

Public Methods

Add(System.Drawing.Image) : ToolStripItem

Adds a System.Windows.Forms.ToolStripItem that displays the specified image to the collection.

Add(string) : ToolStripItem

Adds a System.Windows.Forms.ToolStripItem that displays the specified text to the collection.

Add(ToolStripItem) : int

Adds the specified item to the end of the collection.

Add(string, System.Drawing.Image) : ToolStripItem

Adds a System.Windows.Forms.ToolStripItem that displays the specified image and text to the collection.

Add(string, System.Drawing.Image, EventHandler) : ToolStripItem

Adds a System.Windows.Forms.ToolStripItem that displays the specified image and text to the collection and that raises the ToolStripItem.Click event.

AddRange(ToolStripItem[])

Adds an array of System.Windows.Forms.ToolStripItem controls to the collection.

AddRange(ToolStripItemCollection)

Adds a System.Windows.Forms.ToolStripItemCollection to the current collection.

Clear()

Removes all items from the collection.

Contains(ToolStripItem) : bool

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

ContainsKey(string) : bool

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

CopyTo(ToolStripItem[], int)

Copies the collection into the specified position of the specified System.Windows.Forms.ToolStripItem array.

Find(string, bool) : ToolStripItem[]

Searches for items by their name and returns an array of all matching controls.

IndexOf(ToolStripItem) : int

Retrieves the index of the specified item in the collection.

IndexOfKey(string) : int

Retrieves the index of the first occurrence of the specified item within the collection.

Insert(int, ToolStripItem)

Inserts the specified item into the collection at the specified index.

Remove(ToolStripItem)

Removes the specified item from the collection.

RemoveAt(int)

Removes an item from the specified index in the collection.

RemoveByKey(string)

Removes the item that has the specified key.