System.Windows.Forms.ToolStripItemCollection Members

The members of System.Windows.Forms.ToolStripItemCollection are listed below.

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

Public Constructors

Initializes a new instance of the System.Windows.Forms.ToolStripItemCollection class with the specified container System.Windows.Forms.ToolStrip and the specified array of System.Windows.Forms.ToolStripItem controls.

Public Properties

[read-only]
override
IsReadOnlybool.

Gets a value indicating whether the System.Windows.Forms.ToolStripItemCollection is read-only.

[read-only]
default property
Item(int)ToolStripItem. Documentation for this section has not yet been entered.
[read-only]
default property
Item(string)ToolStripItem. Documentation for this section has not yet been entered.

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.

Explicitly Implemented Interface Members

IList.Add

Adds an item to the collection.

IList.Clear

Removes all items from the collection.

IList.Contains

Determines if the collection contains a specified item.

IList.IndexOf

Determines the location of a specified item in the collection.

IList.Insert

Inserts an item into the collection at a specified index.

[read-only]
IList.IsFixedSizebool.

Gets a value indicating whether the collection has a fixed size.

IList.Itemobject. Documentation for this section has not yet been entered.
IList.Remove

Removes the first occurrence of a specified item from the collection.

IList.RemoveAt

Removes an item from the collection at a specified index.