SubMenuStyleCollection.RemoveAt(Int32) Method

Definition

Removes the SubMenuStyle object at the specified location.

public void RemoveAt(int index);

Parameters

index
Int32

The zero-based index location of the SubMenuStyle object to remove from the collection.

Exceptions

The SubMenuStyleCollection collection is read-only.

index is less than zero.

-or-

index is equal to or greater than Count.

Remarks

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.

Applies to

Produto Versões
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also