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

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

PasswordRecovery.SubmitButtonStyle プロパティ

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

PasswordRecovery コントロールの [送信] ボタン外観定義するプロパティコレクションへの参照取得します

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

Dim instance As PasswordRecovery
Dim value As Style

value = instance.SubmitButtonStyle
public Style SubmitButtonStyle { get; }
public:
property Style^ SubmitButtonStyle {
    Style^ get ();
}
/** @property */
public Style get_SubmitButtonStyle ()
public function get SubmitButtonStyle
 () : Style

プロパティ
[送信] ボタン外観定義するプロパティ格納している Style への参照

解説解説

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

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

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

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

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

使用例使用例

SubmitButtonStyle プロパティ設定PasswordRecovery コントロールさまざまな種類の [送信] ボタンに及ぼす影響次のコード例示します

<%@ page language="VB"%>
<script runat="server">
  Sub DropDownList1_SelectedIndexChanged(ByVal
 sender As Object, ByVal
 e As EventArgs)
    If DropDownList1.SelectedValue = "Button"
 Then
      PasswordRecovery1.SubmitButtonType = ButtonType.Button
      PasswordRecovery1.SubmitButtonText = "Enter User Name"
    End If
    If DropDownList1.SelectedValue = "Image"
 Then
      PasswordRecovery1.SubmitButtonType = ButtonType.Image
      PasswordRecovery1.SubmitButtonImageUrl = "userNameSubmit.png"
      PasswordRecovery1.SubmitButtonText = "Enter User Name Image"
    End If
    If DropDownList1.SelectedValue = "Link"
 Then
      PasswordRecovery1.SubmitButtonType = ButtonType.Link
      PasswordRecovery1.SubmitButtonText = "Enter User Name"
    End If
  End Sub
</script>
<html>
  <head>
  </head>
  <body>
    <form id="Form1" runat="server">
      <table border="1">
        <tbody>
          <tr>
            <td>
              <asp:passwordrecovery id="PasswordRecovery1"
 runat="server"
                submitbuttonimageurl="userNameSubmit.png"
                submitbuttontext="Enter User Name">
                <submitbuttonstyle font-names="Comic Sans MS"
 
                  forecolor="White" 
                  backcolor="#00C000">
                </submitbuttonstyle>
              </asp:passwordrecovery>
            </td>
            <td align="middle">
              Choose a button type:<br />
              <asp:dropdownlist id="DropDownList1"
 runat="server" 
                onselectedindexchanged="DropDownList1_SelectedIndexChanged"
                autopostback="true">
                <asp:listitem value="Button">Button</asp:listitem>
                <asp:listitem value="Image">Image</asp:listitem>
                <asp:listitem value="Link">Link</asp:listitem>
              </asp:dropdownlist>
            </td>
          </tr>
        </tbody>
      </table>
    </form>
  </body>
</html>
<%@ page language="C#"%>
<script runat="server">
  void DropDownList1_SelectedIndexChanged(object Sender, EventArgs
 e)
  {
    if (DropDownList1.SelectedValue == "Button")
    {
      PasswordRecovery1.SubmitButtonType = ButtonType.Button;
      PasswordRecovery1.SubmitButtonText = "Enter User Name";
    }
  
    if (DropDownList1.SelectedValue == "Image")
    {
      PasswordRecovery1.SubmitButtonType = ButtonType.Image;
      PasswordRecovery1.SubmitButtonImageUrl = "userNameSubmit.png";
      PasswordRecovery1.SubmitButtonText = "Enter User Name Image";
    }
  
    if (DropDownList1.SelectedValue == "Link")
    {
      PasswordRecovery1.SubmitButtonType = ButtonType.Link;
      PasswordRecovery1.SubmitButtonText = "Enter User Name";
    }
  }
  
</script>
<html>
  <head>
  </head>
  <body>
    <form id="Form1" runat="server">
      <table border="1">
        <tbody>
          <tr>
            <td>
              <asp:passwordrecovery id="PasswordRecovery1" runat="server"
                submitbuttonimageurl="userNameSubmit.png"
                submitbuttontext="Enter User Name">
                <submitbuttonstyle font-names="Comic Sans MS" 
                  forecolor="White" 
                  backcolor="#00C000">
                </submitbuttonstyle>
              </asp:passwordrecovery>
            </td>
            <td align="middle">
              Choose a button type:<br />
              <asp:dropdownlist id="DropDownList1" runat="server"
 
                onselectedindexchanged="DropDownList1_SelectedIndexChanged"
                autopostback="true">
                <asp:listitem value="Button">Button</asp:listitem>
                <asp:listitem value="Image">Image</asp:listitem>
                <asp:listitem value="Link">Link</asp:listitem>
              </asp:dropdownlist>
            </td>
          </tr>
        </tbody>
      </table>
    </form>
  </body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PasswordRecovery クラス
PasswordRecovery メンバ
System.Web.UI.WebControls 名前空間
PasswordRecovery.HelpPageText プロパティ
その他の技術情報
ASP.NET ログイン コントロール概要


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS