System.Windows.Forms
2.0.0.0
System.Windows.Forms.Layout.ArrangedElementCollection
System.ComponentModel.Editor("System.Windows.Forms.Design.ToolStripCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))
System.ComponentModel.ListBindable(false)
The , , and methods enable you to add and remove individual controls from the collection. You can also use the or methods to add or remove all the controls from the collection.
You can determine whether a is a member of the collection by passing the control into the method. To get the index value of the location of a in the collection, pass the control into the method. The collection can be copied into an array by calling the method.
Represents a collection of objects.
Constructor
To be added.
Initializes a new instance of the class with the specified container and the specified array of controls.
The to which this belongs.
An array of type containing the initial controls for this .
2.0.0.0
Method
System.Windows.Forms.ToolStripItem
To be added.
Adds a that displays the specified image to the collection.
The new .
The to be displayed on the .
2.0.0.0
Method
System.Windows.Forms.ToolStripItem
To be added.
Adds a that displays the specified text to the collection.
The new .
The text to be displayed on the .
2.0.0.0
Method
System.Int32
To be added.
Adds the specified item to the end of the collection.
An representing the zero-based index of the new item in the collection.
The to add to the end of the collection.
2.0.0.0
Method
System.Windows.Forms.ToolStripItem
To be added.
Adds a that displays the specified image and text to the collection.
The new .
The text to be displayed on the .
The to be displayed on the .
2.0.0.0
Method
System.Windows.Forms.ToolStripItem
To be added.
Adds a that displays the specified image and text to the collection and that raises the event.
The new .
The text to be displayed on the .
The to be displayed on the .
Raises the event.
2.0.0.0
Method
System.Void
Use this overload of to copy a array to a . Use the overload of that takes a parameter to merge one with another.
Adds an array of controls to the collection.
An array of controls.
2.0.0.0
Method
System.Void
Use this overload of to merge one with another. You typically use this method with , and you can easily use the , , and methods to modify the merged .
Use the overload of that takes a array to copy an array of controls to a .
Adds a to the current collection.
The to be added to the current collection.
2.0.0.0
Method
System.Void
Use the method to remove the entire collection of controls from a parent control.
To remove an individual control from the collection, use the or method.
To add new controls to the , use the or method.
Removes all items from the collection.
2.0.0.0
Method
System.Boolean
To be added.
Determines whether the specified item is a member of the collection.
true if the is a member of the current ; otherwise, false.
The to search for in the .
2.0.0.0
Method
System.Boolean
The parameter value corresponds to the property.
Determines whether the collection contains an item with the specified key.
true if the contains a with the specified key; otherwise, false.
The key to locate in the .
2.0.0.0
Method
System.Void
To be added.
Copies the collection into the specified position of the specified array.
The array of type to which to copy the collection.
The position in the array at which to paste the collection.
2.0.0.0
Method
System.Windows.Forms.ToolStripItem[]
To be added.
Searches for items by their name and returns an array of all matching controls.
A array of the search results.
The item name to search the for.
true to search child items of the specified by the parameter; otherwise, false.
2.0.0.0
Method
System.Int32
To be added.
Retrieves the index of the specified item in the collection.
A zero-based index value that represents the position of the specified in the , if found; otherwise, -1.
The to locate in the .
2.0.0.0
Method
System.Int32
The parameter value corresponds to the property.
If is called successively, the last returned index will be checked for a key match first, and if there is no match, the search starts at the beginning of the collection.
Retrieves the index of the first occurrence of the specified item within the collection.
A zero-based index value that represents the position of the first occurrence of the specified by the parameter, if found; otherwise, -1.
The name of the to search for.
2.0.0.0
Method
System.Void
To be added.
Inserts the specified item into the collection at the specified index.
The location in the at which to insert the .
The to insert.
2.0.0.0
Property
System.Boolean
To be added.
To be added.
Gets a value indicating whether the is read-only.
2.0.0.0
Property
System.Windows.Forms.ToolStripItem
To be added.
To be added.
To be added.
To be added.
2.0.0.0
Property
System.Windows.Forms.ToolStripItem
To be added.
To be added.
To be added.
To be added.
2.0.0.0
Method
System.Void
When a is removed from the , all subsequent controls are moved up one position in the collection.
You can also remove a by using the method, or remove all controls by using the method.
To add new objects to the collection, use the or methods.
Removes the specified item from the collection.
The to remove from the .
2.0.0.0
Method
System.Void
When a is removed from the , all subsequent controls are moved up one position in the collection.
You can also remove a by using the method, or remove all controls by using the method.
To add new objects to the collection, use the or methods.
Removes an item from the specified index in the collection.
The index value of the to remove.
2.0.0.0
Method
System.Void
The parameter value corresponds to the property.
Removes the item that has the specified key.
The key of the to remove.
2.0.0.0
Method
2.0.0.0
System.Int32
This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.
Adds an item to the collection.
The location at which was inserted.
The item to add to the collection.
Method
2.0.0.0
System.Void
This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.
Removes all items from the collection.
Method
2.0.0.0
System.Boolean
This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.
Determines if the collection contains a specified item.
true if is contained in the collection; otherwise, false.
The item to locate in the collection.
Method
2.0.0.0
System.Int32
This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.
Determines the location of a specified item in the collection.
The index of the item in the collection, if found; otherwise, -1.
The item to locate in the collection.
Method
2.0.0.0
System.Void
This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.
Inserts an item into the collection at a specified index.
The zero-based index at which to insert .
The item to insert into the collection.
Property
2.0.0.0
System.Boolean
To be added.
This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.
Gets a value indicating whether the collection has a fixed size.
Property
2.0.0.0
System.Object
To be added.
To be added.
To be added.
To be added.
Method
2.0.0.0
System.Void
This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.
Removes the first occurrence of a specified item from the collection.
The item to remove from the collection.
Method
2.0.0.0
System.Void
This member is an explicit interface member implementation. It can be used only when the instance is cast to an interface.
Removes an item from the collection at a specified index.
The zero-based index of the item to remove.