Compartilhar via


MenuItemCollection members

Include protected members
Include inherited members

Usado para adicionar, excluir e organizar os itens de menu são exibidos em um menu Web Part.

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 Obtém o MenuItem no local indexado especificado na coleção.
Protected property List (Inherited from CollectionBase.)

Top

Methods

  Name Description
Public method Add Adiciona um criado anteriormente MenuItem no final do menu atual.
Public method AddRange Adiciona uma matriz de objetos criados anteriormente MenuItem à coleção.
Public method Clear (Inherited from CollectionBase.)
Public method Contains Determina se o especificado MenuItem é um membro da coleção.
Public method CopyTo Copia toda a coleção para uma matriz unidimensional, iniciando no índice especificado.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Retorna um enumerador que pode iterar através da coleção.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf Recupera o primeiro índice de um item específico na coleção.
Public method Insert Adiciona um criado anteriormente MenuItem no índice especificado dentro da coleção de itens de menu.
Public method ItemFromID Retorna um MenuItem em uma coleção e todas as subcoleções com uma identificação que o parâmetro de correspondência.
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 Exclui a primeira instância da MenuItem de especificado da coleção.
Public method RemoveAt (Inherited from CollectionBase.)
Public method Replace Substitui a primeira ocorrência do primeiro parâmetro MenuItem com o segundo parâmetro de MenuItem .
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

Ver também

Referência

MenuItemCollection class

Microsoft.SharePoint.WebPartPages namespace