MenuItemStyleCollection::Insert Method (Int32, MenuItemStyle^)

 

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

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
void Insert(
	int index,
	MenuItemStyle^ style
)

Parameters

index
Type: System::Int32

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

style
Type: System.Web.UI.WebControls::MenuItemStyle^

The MenuItemStyle to insert.

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.

.NET Framework
Available since 2.0
Return to top
Show: