SubMenuStyleCollection.Add Method (SubMenuStyle)

 

Adds a submenu style to the SubMenuStyleCollection collection.

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

Public Function Add (
	style As SubMenuStyle
) As Integer

Parameters

style
Type: System.Web.UI.WebControls.SubMenuStyle

The SubMenuStyle instance to add to the collection.

Return Value

Type: System.Int32

The position in the collection at which the SubMenuStyle instance was inserted.

The OnInsert and OnValidate methods are called before the SubMenuStyle instance is added to the collection, and the OnInsertComplete method is called after the SubMenuStyle instance is added.

.NET Framework
Available since 2.0
Return to top
Show: