Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MenuItemCollection Methods

MenuItemCollection Methods

The MenuItemCollection type exposes the following members.

  Name Description
Public method Add Appends the specified MenuItem object to the end of the current MenuItemCollection object.
Public method AddAt Inserts the specified MenuItem object in the current MenuItemCollection object at the specified index location.
Public method Clear Removes all items from the current MenuItemCollection object.
Public method Contains Determines whether the specified MenuItem object is in the collection.
Public method CopyTo(Array, Int32) Copies all the items from the MenuItemCollection object to a compatible one-dimensional Array, starting at the specified index in the target array.
Public method CopyTo(MenuItem[], Int32) Copies all the items from the MenuItemCollection object to a compatible one-dimensional array of MenuItem objects, starting at the specified index in the target array.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can be used to iterate through the items in the current MenuItemCollection object.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Determines the index of the specified MenuItem object in the collection.
Public method Remove Removes the specified MenuItem object from the MenuItemCollection object.
Public method RemoveAt Removes the MenuItem object at the specified index location from the current MenuItemCollection object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Public Extension Method AsParallel() Overloaded. Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsParallel() Overloaded. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable() Overloaded. Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method AsQueryable() Overloaded. (Defined by Queryable.)
Public Extension Method Cast<TResult>() Overloaded. Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method Cast<TResult>() Overloaded. (Defined by Enumerable.)
Public Extension Method OfType<TResult>() Overloaded. Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult>() Overloaded. (Defined by Enumerable.)
Top

  Name Description
Explicit interface implemetation Private method IStateManager.LoadViewState Infrastructure. Loads the MenuItemCollection object's previously saved view state.
Explicit interface implemetation Private method IStateManager.SaveViewState Infrastructure. Saves the changes to view state to an Object.
Explicit interface implemetation Private method IStateManager.TrackViewState Infrastructure. Instructs the MenuItemCollection object to track changes to its view state.
Top
Show:
© 2015 Microsoft