Επεξεργασία

Κοινή χρήση μέσω


SubMenuStyleCollection.RemoveAt(Int32) Method

Definition

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)

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

See also