This documentation is archived and is not being maintained.
MenuItemCollection Members
Visual Studio 2008
Represents a collection of menu items in a Menu control. This class cannot be inherited.
The MenuItemCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
MenuItemCollection | Overloaded. Initializes a new instance of the MenuItemCollection class. |
| Name | Description | |
|---|---|---|
|
Add | Appends the specified MenuItem object to the end of the current MenuItemCollection object. |
|
AddAt | Inserts the specified MenuItem object in the current MenuItemCollection object at the specified index location. |
|
Clear | Removes all items from the current MenuItemCollection object. |
|
Contains | Determines whether the specified MenuItem object is in the collection. |
|
CopyTo | Overloaded. Copies the contents of the current MenuItemCollection object. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetEnumerator | Returns an enumerator that can be used to iterate through the items in the current MenuItemCollection object. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
IndexOf | Determines the index of the specified MenuItem object in the collection. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Removes the specified MenuItem object from the MenuItemCollection object. |
|
RemoveAt | Removes the MenuItem object at the specified index location from the current MenuItemCollection object. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
Count | Gets the number of menu items contained in the current MenuItemCollection object. |
|
IsSynchronized | Gets a value indicating whether access to the MenuItemCollection object is synchronized (thread safe). |
|
Item | Gets the MenuItem object at the specified index in the current MenuItemCollection object. |
|
SyncRoot | Gets an object that can be used to synchronize access to the MenuItemCollection object. |
| Name | Description | |
|---|---|---|
|
IStateManager::IsTrackingViewState | Infrastructure. Gets a value that indicates whether the MenuItemCollection object is saving changes to its view state. |
|
IStateManager::LoadViewState | Infrastructure. Loads the MenuItemCollection object's previously saved view state. |
|
IStateManager::SaveViewState | Infrastructure. Saves the changes to view state to an Object. |
|
IStateManager::TrackViewState | Infrastructure. Instructs the MenuItemCollection object to track changes to its view state. |
Show: