PasswordRecovery.SuccessTextStyle プロパティ

定義

PasswordRecovery コントロールの正常に完了ビューに表示するテキストの外観を定義するスタイル プロパティのコレクションへの参照を取得します。

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

プロパティ値

正常に完了ビューに表示するテキストの外観を定義するプロパティを格納している TableItemStyle への参照。

属性

次のコード例では、 プロパティを SuccessTextStyle 使用して、 プロパティの外観を SuccessText 変更します。

<%@ 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>

注釈

プロパティは SuccessTextStyle 、コントロールの Success ビューでのテキストの外観を PasswordRecovery 定義します。 このプロパティは読み取り専用です。ただし、返されるオブジェクトのプロパティを Style 設定できます。 これらのプロパティは、 という形式 Property-Subpropertyで宣言的に設定できます。ここで Subproperty 、 は クラスの Style プロパティ (例: SuccessTextStyle-ForeColor) を表します。 フォーム Property.Subproperty でプログラムでプロパティを設定することもできます (例: SuccessTextStyle.ForeColor)。

一般的な設定には、ユーザー設定の背景色、テキストの色、フォント プロパティが含まれます。

プロパティの SuccessTextStyle スタイル設定は、コントロールのスタイル設定 PasswordRecovery とマージされます。 プロパティで行われた設定は、 SuccessTextStyle コントロールのプロパティの対応する設定を PasswordRecovery オーバーライドします。

PasswordRecovery のプロパティは、設定によって SuccessTextStyle オーバーライドされます。

テンプレートを使用してコントロールの Success ビューの外観を PasswordRecovery 定義する場合、 SuccessTextStyle プロパティは無効です。

適用対象

こちらもご覧ください