System.Web.UI.WebControls.Menu.StaticSelectedStyle Property

Gets a reference to the System.Web.UI.WebControls.MenuItemStyle object that allows you to set the appearance of the menu item selected by the user in a static menu.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
[System.ComponentModel.DefaultValue(null)]
[System.ComponentModel.NotifyParentProperty(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public MenuItemStyle StaticSelectedStyle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the Menu.StaticSelectedStyle property to control the appearance of the menu item selected by the user in a static menu. This property is read-only; however, you can set the properties of the System.Web.UI.WebControls.MenuItemStyle object it returns. The properties can be set declaratively in the form Property-Subproperty, where Subproperty is a property of the System.Web.UI.WebControls.MenuItemStyle object (for example, StaticSelectedStyle-ForeColor). The properties can also be set programmatically in the form Property.Subproperty (for example, StaticSelectedStyle.ForeColor).

Style properties for a static menu item are applied in the following order:

[The 'ordered' type of list has not been implemented in the ECMA stylesheet.]

Requirements

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