System.Web.UI.WebControls.PasswordRecovery.LabelStyle Property

Gets a reference to a collection of style properties that define the appearance of text box labels in the System.Web.UI.WebControls.PasswordRecovery control.

Syntax

public TableItemStyle LabelStyle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The PasswordRecovery.LabelStyle property defines the appearance of text box labels in the System.Web.UI.WebControls.PasswordRecovery control. This property is read-only; however, you can set the properties of the System.Web.UI.WebControls.Style object it returns. You cans set these properties declaratively in the form Property-Subproperty, where Subproperty represents a property of the System.Web.UI.WebControls.Style class (for example, LabelStyle-ForeColor). You can also set the properties programmatically in the form Property.Subproperty (for example, LabelStyle.ForeColor).

Common settings include custom background color, text color, and font properties.

The PasswordRecovery.LabelStyle property defines the appearance of the following properties:

Style settings made to the PasswordRecovery.LabelStyle property are merged with the style settings for the System.Web.UI.WebControls.PasswordRecovery control. Any settings made in the PasswordRecovery.LabelStyle property override the corresponding settings in properties of the System.Web.UI.WebControls.PasswordRecovery control.

The following System.Web.UI.WebControls.PasswordRecovery properties are overridden by PasswordRecovery.LabelStyle settings:

When you use templates to define the appearance of the System.Web.UI.WebControls.PasswordRecovery control's UserName view and Question view, the PasswordRecovery.LabelStyle property has no effect.

Requirements

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