Menu::LevelMenuItemStyles Property
Gets a MenuItemStyleCollection object that contains the style settings that are applied to menu items based on their level in a Menu control.
Assembly: System.Web (in System.Web.dll)
[PersistenceModeAttribute(PersistenceMode::InnerProperty)] public: property MenuItemStyleCollection^ LevelMenuItemStyles { MenuItemStyleCollection^ get (); }
Property Value
Type: System.Web.UI.WebControls::MenuItemStyleCollectionA MenuItemStyleCollection that contains the style settings that are applied to menu items based on their level in a Menu control.
Use the LevelMenuItemStyles collection as an alternative to the individual style properties (such as DynamicMenuItemStyle) to control the style of menu items at the individual levels of the menu. The styles contained in this collection are applied to the menu items based on their menu level. The first style in the collection corresponds to the style of menu items in the first level of the menu. The second style in the collection corresponds to the style of menu items in the second level of the menu, and so on. This collection is most often used to generate table of contents-style navigation menus where menu items at a certain level should have the same appearance, regardless of whether they have submenus.
Note: |
|---|
If a style is defined for a certain level using the LevelMenuItemStyles collection, this overrides any menu item style settings for the menu items at that level. |
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: