MenuItemCollection members

Used to add, delete, and arrange the menu items that are displayed in a Web Part menu.

The MenuItemCollection type exposes the following members.

  Name Description
Public property Capacity (Inherited from CollectionBase.)
Public property Count (Inherited from CollectionBase.)
Protected property InnerList (Inherited from CollectionBase.)
Public property Item Gets the MenuItem at the specified indexed location in the collection.
Protected property List (Inherited from CollectionBase.)

  Name Description
Public method Add Adds a previously created MenuItem to the end of the current menu.
Public method AddRange Adds an array of previously created MenuItem objects to the collection.
Public method Clear (Inherited from CollectionBase.)
Public method Contains Determines if the specified MenuItem is a member of the collection.
Public method CopyTo Copies the entire collection into a one-dimensional array starting at the specified index.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can iterate through the collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf Retrieves the first index of a specific item in the collection.
Public method Insert Adds a previously created MenuItem at the specified index within the menu item collection.
Public method ItemFromID Returns a MenuItem in a collection, and all subcollections with an ID matching the parameter.
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnClear (Inherited from CollectionBase.)
Protected method OnClearComplete (Inherited from CollectionBase.)
Protected method OnInsert (Inherited from CollectionBase.)
Protected method OnInsertComplete (Inherited from CollectionBase.)
Protected method OnRemove (Inherited from CollectionBase.)
Protected method OnRemoveComplete (Inherited from CollectionBase.)
Protected method OnSet (Inherited from CollectionBase.)
Protected method OnSetComplete (Inherited from CollectionBase.)
Protected method OnValidate (Inherited from CollectionBase.)
Public method Remove Deletes the first instance of the specified MenuItem from the collection.
Public method RemoveAt (Inherited from CollectionBase.)
Public method Replace Replaces the first instance of the first MenuItem parameter with the second MenuItem parameter.
Public method ToString (Inherited from Object.)