PasswordRecovery.InstructionTextStyle プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PasswordRecovery.InstructionTextStyle プロパティの意味・解説 

PasswordRecovery.InstructionTextStyle プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

PasswordRecovery コントロール説明テキスト外観定義するスタイル プロパティコレクションへの参照取得します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public ReadOnly Property
 InstructionTextStyle As TableItemStyle
Dim instance As PasswordRecovery
Dim value As TableItemStyle

value = instance.InstructionTextStyle
public TableItemStyle InstructionTextStyle { get;
 }
public:
property TableItemStyle^ InstructionTextStyle {
    TableItemStyle^ get ();
}
/** @property */
public TableItemStyle get_InstructionTextStyle ()
public function get InstructionTextStyle
 () : TableItemStyle

プロパティ
説明テキスト外観定義するプロパティ格納している TableItemStyle への参照

解説解説

InstructionTextStyle プロパティは、PasswordRecovery コントロール説明テキスト外観定義します。このプロパティ読み取り専用です。ただし、このプロパティ返す Style オブジェクトプロパティ設定することはできます。このプロパティは、Property-Subproperty形式で、宣言によって設定できます。ここで、SubpropertyStyle クラスプロパティ表します (例 : InstructionTextStyle-ForeColor)。Property.Subproperty形式プロパティプログラムによって設定することもできます (例 : InstructionTextStyle.ForeColor)。

共通設定には、カスタム背景色テキストの色、およびフォントプロパティ含まれます。InstructionTextStyle プロパティは、次のプロパティ外観定義します

  • QuestionInstructionText

  • UserNameInstructionText

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

PasswordRecovery コントロール次のプロパティは、InstructionTextStyle プロパティによってオーバーライドされます

テンプレート使用してPasswordRecovery コントロールユーザー名ビューまたは質問ビュー外観定義した場合InstructionTextStyle プロパティ無効になります

使用例使用例

InstructionTextStyle プロパティ設定方法次のコード例示します

<%@ page language="VB" %>

<script runat="server">

  Sub PasswordRecovery1_UserLookupError(ByVal
 sender As Object, ByVal
 e As System.EventArgs)
    PasswordRecovery1.UserNameInstructionText = "Enter the correct
 Web site user name."
    PasswordRecovery1.InstructionTextStyle.ForeColor = System.Drawing.Color.Red
  End Sub
  
  Sub PasswordRecovery1_AnswerLookupError(ByVal
 sender As Object, ByVal
 e As System.EventArgs)
    PasswordRecovery1.QuestionInstructionText = "Enter the correct
 answer to this question."
    PasswordRecovery1.InstructionTextStyle.ForeColor = System.Drawing.Color.Red
  End Sub
</script>

<html>
<body>
<form runat="server">
  <asp:passwordrecovery id="PasswordRecovery1"
 runat="server" 
    questioninstructiontext="Enter the answer to the password
 confirmation question."
    usernameinstructiontext="Enter your Web site user name."
 
    OnUserLookupError="PasswordRecovery1_UserLookupError"
 OnAnswerLookupError="PasswordRecovery1_AnswerLookupError">
    <instructiontextstyle 
      font-size="Smaller" 
      font-names="Comic Sans MS" 
      font-italic="True" 
      forecolor="Blue">
    </instructiontextstyle>
  </asp:passwordrecovery>
</form>
</body>
</html>
<%@ page language="C#" %>

<script runat="server">

  void PasswordRecovery1_UserLookupError(object sender, EventArgs
 e)
  {
    PasswordRecovery1.UserNameInstructionText = "Enter the correct Web site
 user name.";
    PasswordRecovery1.InstructionTextStyle.ForeColor = System.Drawing.Color.Red;
  }
  
  void PasswordRecovery1_AnswerLookupError(object sender, EventArgs
 e)
  {
    PasswordRecovery1.QuestionInstructionText = "Enter the correct answer to
 this question.";
    PasswordRecovery1.InstructionTextStyle.ForeColor = System.Drawing.Color.Red;
  }
  
</script>

<html>
<body>
<form runat="server">
  <asp:passwordrecovery id="PasswordRecovery1" runat="server"
 
    questioninstructiontext="Enter the answer to the password confirmation question."
    usernameinstructiontext="Enter your Web site user name." 
    OnUserLookupError="PasswordRecovery1_UserLookupError" OnAnswerLookupError="PasswordRecovery1_AnswerLookupError">
    <instructiontextstyle 
      font-size="Smaller" 
      font-names="Comic Sans MS" 
      font-italic="True" 
      forecolor="Blue">
    </instructiontextstyle>
  </asp:passwordrecovery>
</form>
</body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PasswordRecovery クラス
PasswordRecovery メンバ
System.Web.UI.WebControls 名前空間
QuestionInstructionText
UserNameInstructionText
Style
その他の技術情報
ASP.NET ログイン コントロール概要


このページでは「.NET Framework クラス ライブラリ リファレンス」からPasswordRecovery.InstructionTextStyle プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からPasswordRecovery.InstructionTextStyle プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPasswordRecovery.InstructionTextStyle プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

PasswordRecovery.InstructionTextStyle プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



PasswordRecovery.InstructionTextStyle プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS