PasswordRecovery.SuccessTextStyle Propriedade
Definição
Obtém uma referência a uma coleção de propriedades de estilo que definem a aparência do texto exibido na exibição Sucesso do controle PasswordRecovery.Gets a reference to a collection of style properties that define the appearance of text displayed in the Success view of the PasswordRecovery control.
public:
property System::Web::UI::WebControls::TableItemStyle ^ SuccessTextStyle { System::Web::UI::WebControls::TableItemStyle ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.TableItemStyle SuccessTextStyle { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.SuccessTextStyle : System.Web.UI.WebControls.TableItemStyle
Public ReadOnly Property SuccessTextStyle As TableItemStyle
Valor da propriedade
Uma referência a um TableItemStyle que contém propriedades que definem a aparência do texto exibido na exibição êxito.A reference to a TableItemStyle that contains properties that define the appearance of text displayed in the Success view.
- Atributos
Exemplos
O exemplo de código a seguir usa a SuccessTextStyle propriedade para alterar a aparência da SuccessText propriedade.The following code example uses the SuccessTextStyle property to change the appearance of the SuccessText property.
<%@ page language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<asp:passwordrecovery id="PasswordRecovery1" runat="server"
successtext="Your password has been sent to the email address in our files.">
<successtextstyle font-names="Arial" forecolor="Green"></successtextstyle>
</asp:passwordrecovery>
</form>
</body>
</html>
<%@ page language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<asp:passwordrecovery id="PasswordRecovery1" runat="server"
successtext="Your password has been sent to the email address in our files.">
<successtextstyle font-names="Arial" forecolor="Green"></successtextstyle>
</asp:passwordrecovery>
</form>
</body>
</html>
Comentários
A SuccessTextStyle propriedade define a aparência do texto na exibição de êxito do PasswordRecovery controle.The SuccessTextStyle property defines the appearance of text in the Success view of the PasswordRecovery control. Esta propriedade é somente leitura; no entanto, você pode definir as propriedades do Style objeto retornado.This 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, SuccessTextStyle-ForeColor ).You can set these properties declaratively in the form Property-Subproperty, where Subproperty represents a property of the Style class (for example, SuccessTextStyle-ForeColor). Você também pode definir as propriedades programaticamente no formulário Property.Subproperty (por exemplo, SuccessTextStyle.ForeColor ).You can also set the properties programmatically in the form Property.Subproperty (for example, SuccessTextStyle.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 SuccessTextStyle propriedade são mescladas com as configurações de estilo para o PasswordRecovery controle.The style settings for the SuccessTextStyle property are merged with the style settings for the PasswordRecovery control. As configurações feitas na SuccessTextStyle propriedade substituem as configurações correspondentes nas propriedades do PasswordRecovery controle.Any settings made in the SuccessTextStyle property override the corresponding settings in properties of the PasswordRecovery control.
As propriedades a seguir PasswordRecovery são substituídas pelas SuccessTextStyle configurações:The following PasswordRecovery properties are overridden by SuccessTextStyle settings:
Quando você usa modelos para definir a aparência da exibição de êxito do PasswordRecovery controle, a SuccessTextStyle propriedade não tem nenhum efeito.When you use templates to define the appearance of the Success view of the PasswordRecovery control, the SuccessTextStyle property has no effect.