MenuItemStyleCollection.Insert(Int32, MenuItemStyle) Method

Definition

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

C#
public void Insert(int index, System.Web.UI.WebControls.MenuItemStyle style);

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

Product Versions
.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