System.Web.UI.WebControls.MenuItemStyleCollection.Insert Method

Inserts the specified System.Web.UI.WebControls.MenuItemStyle object into the collection at the specified index location.

Syntax

public void Insert (int index, MenuItemStyle style)

Parameters

index
The zero-based index location at which to insert the System.Web.UI.WebControls.MenuItemStyle.
style
The System.Web.UI.WebControls.MenuItemStyle to insert.

Remarks

Use the MenuItemStyleCollection.Insert(int, MenuItemStyle) method to insert the specified System.Web.UI.WebControls.MenuItemStyle object into the collection at the specified zero-based index.

As an alternative, you can append a System.Web.UI.WebControls.MenuItemStyle object to the end of the collection using the MenuItemStyleCollection.Add(MenuItemStyle) method.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0