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

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

PasswordRecovery.TextLayout プロパティ

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

PasswordRecovery コントロールを横のレイアウトと縦のレイアウトのどちらで表示するかを指定する値を取得または設定します

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

Public Overridable Property
 TextLayout As LoginTextLayout
Dim instance As PasswordRecovery
Dim value As LoginTextLayout

value = instance.TextLayout

instance.TextLayout = value
public virtual LoginTextLayout TextLayout { get;
 set; }
public:
virtual property LoginTextLayout TextLayout {
    LoginTextLayout get ();
    void set (LoginTextLayout value);
}
/** @property */
public LoginTextLayout get_TextLayout ()

/** @property */
public void set_TextLayout (LoginTextLayout
 value)
public function get TextLayout
 () : LoginTextLayout

public function set TextLayout
 (value : LoginTextLayout)

プロパティ
LoginTextLayout 列挙値の 1 つ既定値は TextOnLeft です。

例外例外
例外種類条件

ArgumentOutOfRangeException

TextLayout プロパティ有効な LoginTextLayout 列挙値に設定されていません。

解説解説
使用例使用例

TextLayout プロパティ変更PasswordRecovery コントロール外観に及ぼす影響次のコード例示します

<%@ page language="VB"%>
<script runat="server">
    Sub DropDownList1_SelectedIndexChanged(ByVal
 sender As Object, ByVal
 e As EventArgs)
        If DropDownList1.SelectedValue = "TextOnLeft"
 Then
            PasswordRecovery1.TextLayout = LoginTextLayout.TextOnLeft
        End If
        If DropDownList1.SelectedValue = "TextOnTop"
 Then
            PasswordRecovery1.TextLayout = LoginTextLayout.TextOnTop
        End If
    End Sub
</script>
<html>
    <body>
        <form runat="server">
            <table border="1">
                <tr>
                    <td> Choose text layout: 
                        <asp:dropdownlist id="DropDownList1"
 runat="server"
                            autopostback="true" onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                            <asp:listitem value="TextOnLeft">Left</asp:listitem>
                            <asp:listitem value="TextOnTop">Top</asp:listitem>
                        </asp:dropdownlist>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:passwordrecovery id="PasswordRecovery1"
 runat="server" 
                            textlayout="TextOnLeft">
                        </asp:passwordrecovery>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
<%@ page language="C#"%>
<script runat="server">
    void DropDownList1_SelectedIndexChanged(object sender, EventArgs
 e)
    {
        if (DropDownList1.SelectedValue == "TextOnLeft")
 
        {
            PasswordRecovery1.TextLayout = LoginTextLayout.TextOnLeft;
        }
        if (DropDownList1.SelectedValue == "TextOnTop")
        {
            PasswordRecovery1.TextLayout = LoginTextLayout.TextOnTop;
        }
    }
    
</script>

<html>
    <body>
        <form runat="server">
            <table border="1">
                <tr>
                    <td> Choose text layout: 
                        <asp:dropdownlist id="DropDownList1" runat="server"
                            autopostback="true" onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                            <asp:listitem value="TextOnLeft">Left</asp:listitem>
                            <asp:listitem value="TextOnTop">Top</asp:listitem>
                        </asp:dropdownlist>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:passwordrecovery id="PasswordRecovery1"
 runat="server" 
                            textlayout="TextOnLeft">
                        </asp:passwordrecovery>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS