Represents a collection of System.Windows.Forms.ToolStripItem objects.
See Also: ToolStripItemCollection Members
The ToolStripItemCollection.Add(ToolStripItem), ToolStripItemCollection.Remove(ToolStripItem), and ToolStripItemCollection.RemoveAt(int) methods enable you to add and remove individual controls from the collection. You can also use the ToolStripItemCollection.AddRange(ToolStripItem[]) or ToolStripItemCollection.Clear methods to add or remove all the controls from the collection.
You can determine whether a System.Windows.Forms.ToolStripItem is a member of the collection by passing the control into the ToolStripItemCollection.Contains(ToolStripItem) method. To get the index value of the location of a System.Windows.Forms.ToolStripItem in the collection, pass the control into the ToolStripItemCollection.IndexOf(ToolStripItem) method. The collection can be copied into an array by calling the ToolStripItemCollection.CopyTo(ToolStripItem[], int) method.