SubMenuStyleCollection.Add Method (SubMenuStyle)


Adds a submenu style to the SubMenuStyleCollection collection.

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

member Add : 
        style:SubMenuStyle -> int


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