System.Web.UI.WebControls.SubMenuStyleCollection Class

Represents a collection of System.Web.UI.WebControls.SubMenuStyle objects in a System.Web.UI.WebControls.Menu control.

See Also: SubMenuStyleCollection Members

Syntax

public class SubMenuStyleCollection : System.Web.UI.StateManagedCollection

Remarks

The System.Web.UI.WebControls.SubMenuStyleCollection class is used to store and manage a collection of System.Web.UI.WebControls.SubMenuStyle objects in a System.Web.UI.WebControls.Menu control. The System.Web.UI.WebControls.Menu control uses the System.Web.UI.WebControls.SubMenuStyleCollection class as the underlying data type of the Menu.LevelSubMenuStyles property.

The Menu.LevelSubMenuStyles property provides additional style choices in addition to the Menu.StaticMenuStyle and Menu.DynamicMenuStyle properties. The first style in the System.Web.UI.WebControls.SubMenuStyleCollection collection corresponds to the submenu style for the first level of the menu. The second style in the collection corresponds to the submenu style for the second level of the menu, and so on. The Menu.LevelSubMenuStyles property is most often used to generate a navigation menu, like a Web site map, where menu items at a certain level should have the same appearance, regardless of whether they have submenus.

The System.Web.UI.WebControls.SubMenuStyleCollection class inherits most of its members from the System.Web.UI.StateManagedCollection class. For more information on the inherited members, see the System.Web.UI.StateManagedCollection collection.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0