Share via


MenuItemCollection Members

Include Protected Members
Include Inherited 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.

Properties

  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.)

Top

Methods

  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.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method IList.Contains (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method IList.Insert (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property IList.Item (Inherited from CollectionBase.)
Explicit interface implemetationPrivate method IList.Remove (Inherited from CollectionBase.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from CollectionBase.)

Top

See Also

Reference

MenuItemCollection Class

Microsoft.SharePoint.WebPartPages Namespace