SubMenuStyleCollection::Add Method (SubMenuStyle^)
.NET Framework (current version)
Adds a submenu style to the SubMenuStyleCollection collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- style
-
Type:
System.Web.UI.WebControls::SubMenuStyle^
The SubMenuStyle instance to add to the collection.
Return Value
Type: System::Int32The 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
Available since 2.0
Show: