System.Web.UI.WebControls.PasswordRecovery.ValidatorTextStyle Property

Gets a reference to a collection of System.Web.UI.WebControls.Style properties that define the appearance of error messages that are associated with any input validation used by the System.Web.UI.WebControls.PasswordRecovery control.

Syntax

public Style ValidatorTextStyle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The PasswordRecovery.ValidatorTextStyle property defines the appearance of validation error messages 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 can set these properties declaratively in the form Property-Subproperty, where Subproperty represents a property of the System.Web.UI.WebControls.Style class (for example, FailureTextStyle-ForeColor). You can set the property programmatically in the form Property.Subproperty (for example, FailureTextStyle.ForeColor).

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

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

Requirements

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