Editar

Partilhar via


MenuItemStyleCollection.Insert(Int32, MenuItemStyle) Method

Definition

Inserts the specified MenuItemStyle object into the collection at the specified index location.

public:
 void Insert(int index, System::Web::UI::WebControls::MenuItemStyle ^ style);
public void Insert (int index, System.Web.UI.WebControls.MenuItemStyle style);
member this.Insert : int * System.Web.UI.WebControls.MenuItemStyle -> unit
Public Sub Insert (index As Integer, style As MenuItemStyle)

Parameters

index
Int32

The zero-based index location at which to insert the MenuItemStyle.

style
MenuItemStyle

The MenuItemStyle to insert.

Remarks

Use the Insert method to insert the specified MenuItemStyle object into the collection at the specified zero-based index.

As an alternative, you can append a MenuItemStyle object to the end of the collection using the Add method.

Applies to

See also