System.Web.UI.WebControls.MenuItemStyleCollection.Add Method

Appends the specified System.Web.UI.WebControls.MenuItemStyle object to the end of the current collection.

Syntax

public int Add (MenuItemStyle style)

Parameters

style
The System.Web.UI.WebControls.MenuItemStyle to append to the end of the current collection.

Returns

The zero-based index of the added System.Web.UI.WebControls.MenuItemStyle.

Remarks

Use the MenuItemStyleCollection.Add(MenuItemStyle) method to append the specified System.Web.UI.WebControls.MenuItemStyle object to the end of the collection. As an alternative, you can insert a System.Web.UI.WebControls.MenuItemStyle object into the collection at a specific index by using the MenuItemStyleCollection.Insert(int, 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