Menu.DynamicMenuItemStyle Property
Assembly: System.Web (in system.web.dll)
Use the DynamicMenuItemStyle property to control the appearance of the menu items within a dynamic menu. This property is read-only; however, you can set the properties of the MenuItemStyle object it returns. The properties can be set declaratively in the form Property-Subproperty, where Subproperty is a property of the MenuItemStyle object (for example, DynamicMenuItemStyle-ForeColor). The properties can also be set programmatically in the form Property.Subproperty (for example, DynamicMenuItemStyle.ForeColor).
Style properties for a dynamic menu item are applied in the following order:
-
DynamicMenuItemStyle. If the LevelMenuItemStyles collection or LevelSubMenuStyles collection is defined, it is applied at this time, overriding the other menu item style properties.
-
DynamicSelectedStyle. If the LevelSelectedStyles collection is defined, it is applied at this time, overriding the other menu item style properties.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.