SubMenuStyleCollection.RemoveAt(Int32) Método

Definição

Remove o objeto SubMenuStyle no local especificado.Removes the SubMenuStyle object at the specified location.

public:
 void RemoveAt(int index);
public void RemoveAt (int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

Parâmetros

index
Int32

O local do índice de base zero do objeto SubMenuStyle a ser removido da coleção.The zero-based index location of the SubMenuStyle object to remove from the collection.

Exceções

A coleção SubMenuStyleCollection é somente leitura.The SubMenuStyleCollection collection is read-only.

index é menor que zero.index is less than zero.

- ou --or- index é igual a ou maior que Count.index is equal to or greater than Count.

Comentários

O OnRemove método é chamado antes de o SubMenuStyle objeto ser removido da coleção, e o OnRemoveComplete método é chamado depois que o objeto é removido da SubMenuStyleCollection coleção.The OnRemove method is called before the SubMenuStyle object is removed from the collection, and the OnRemoveComplete method is called after the object is removed from the SubMenuStyleCollection collection.

Aplica-se a

Confira também