CreateUserWizard.ValidatorTextStyle Propriedade

Definição

Obtém uma referência ao objeto Style que permite definir a aparência das mensagens de erro de validação.Gets a reference to the Style object that allows you to set the appearance of the validation error messages.

public:
 property System::Web::UI::WebControls::Style ^ ValidatorTextStyle { System::Web::UI::WebControls::Style ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.Style ValidatorTextStyle { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.ValidatorTextStyle : System.Web.UI.WebControls.Style
Public ReadOnly Property ValidatorTextStyle As Style

Valor da propriedade

Style

Um Style que contém as propriedades de estilo que definem a aparência das mensagens de erro de validação no controle.A Style containing the style properties that define the appearance of validation error messages on the control. O padrão é nulo.The default is null.

Atributos

Comentários

Use a ValidatorTextStyle propriedade para alterar a aparência das mensagens que são exibidas para erros de validação de entrada.Use the ValidatorTextStyle property to change the appearance of messages that are displayed for input validation errors. Por padrão, o ValidatorTextStyle é definido para exibir as seguintes mensagens em vermelho:By default, the ValidatorTextStyle is set to display the following messages in red:

A ValidatorTextStyle propriedade é somente leitura; no entanto, você pode definir as propriedades do Style objeto retornado.The ValidatorTextStyle property is read-only; however, you can set the properties of the Style object it returns. Você pode definir essas propriedades de forma declarativa no formulário Property-Subproperty , em que Subproperty representa uma propriedade da Style classe (por exemplo, ValidatorTextStyle-ForeColor ).You can set these properties declaratively in the form Property-Subproperty, where Subproperty represents a property of the Style class (for example, ValidatorTextStyle-ForeColor). Você pode definir a propriedade programaticamente no formulário Property.Subproperty (por exemplo, ValidatorTextStyle.ForeColor ).You can set the property programmatically in the form Property.Subproperty (for example, ValidatorTextStyle.ForeColor).

As configurações comuns incluem cor de plano de fundo personalizada, cor do texto e propriedades da fonte.Common settings include custom background color, text color, and font properties. As configurações de estilo da ValidatorTextStyle propriedade são mescladas com as configurações de estilo para o CreateUserWizard controle.The style settings for the ValidatorTextStyle property are merged with the style settings for the CreateUserWizard control. Todas as configurações aplicadas na ValidatorTextStyle propriedade substituem as configurações correspondentes nas propriedades do CreateUserWizard controle.Any settings applied in the ValidatorTextStyle property override the corresponding settings in the properties of the CreateUserWizard control.

As seguintes CreateUserWizard Propriedades de estilo são substituídas pelas ValidatorTextStyle configurações:The following CreateUserWizard style properties are overridden by ValidatorTextStyle settings:

No entanto, quando você usa modelos para definir a aparência do CreateUserWizard controle, a ValidatorTextStyle propriedade não tem nenhum efeito.However, when you use templates to define the appearance of the CreateUserWizard control, the ValidatorTextStyle property has no effect.

Aplica-se a