ToolStripItemCollection Methods
.NET Framework 4.5
The ToolStripItemCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add(Image) | Adds a ToolStripItem that displays the specified image to the collection. |
|
Add(String) | Adds a ToolStripItem that displays the specified text to the collection. |
|
Add(ToolStripItem) | Adds the specified item to the end of the collection. |
|
Add(String, Image) | Adds a ToolStripItem that displays the specified image and text to the collection. |
|
Add(String, Image, EventHandler) | Adds a ToolStripItem that displays the specified image and text to the collection and that raises the Click event. |
|
AddRange(ToolStripItem[]) | Adds an array of ToolStripItem controls to the collection. |
|
AddRange(ToolStripItemCollection) | Adds a ToolStripItemCollection to the current collection. |
|
Clear | Removes all items from the collection. |
|
Contains | Determines whether the specified item is a member of the collection. |
|
ContainsKey | Determines whether the collection contains an item with the specified key. |
|
CopyTo(Array, Int32) | Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from ArrangedElementCollection.) |
|
CopyTo(ToolStripItem[], Int32) | Copies the collection into the specified position of the specified ToolStripItem array. |
|
Equals | Determines whether two ArrangedElementCollection instances are equal. (Inherited from ArrangedElementCollection.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Find | Searches for items by their name and returns an array of all matching controls. |
|
GetEnumerator | Returns an enumerator for the entire collection. (Inherited from ArrangedElementCollection.) |
|
GetHashCode | Returns the hash code for this instance. (Inherited from ArrangedElementCollection.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
IndexOf | Retrieves the index of the specified item in the collection. |
|
IndexOfKey | Retrieves the index of the first occurrence of the specified item within the collection. |
|
Insert | Inserts the specified item into the collection at the specified index. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Removes the specified item from the collection. |
|
RemoveAt | Removes an item from the specified index in the collection. |
|
RemoveByKey | Removes the item that has the specified key. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
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. |
|
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. |