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

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

DesignerAutoFormatStyle.VerticalAlign プロパティ

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

関連付けられているコントロール内容の垂直方向の配置取得または設定します

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

Public Property VerticalAlign As
 VerticalAlign
Dim instance As DesignerAutoFormatStyle
Dim value As VerticalAlign

value = instance.VerticalAlign

instance.VerticalAlign = value
public VerticalAlign VerticalAlign { get; set;
 }
public:
property VerticalAlign VerticalAlign {
    VerticalAlign get ();
    void set (VerticalAlign value);
}
/** @property */
public VerticalAlign get_VerticalAlign ()

/** @property */
public void set_VerticalAlign (VerticalAlign
 value)
public function get VerticalAlign
 () : VerticalAlign

public function set VerticalAlign
 (value : VerticalAlign)

プロパティ
VerticalAlign 値の 1 つ既定値NotSet です。

解説解説

VerticalAlign プロパティ使用して関連付けられているコントロール内容の垂直方向の配置指定します関連付けられているコントロールVerticalAlign プロパティ適用されない場合、この設定無視されます。直方向の配置に関する定義済みの値については、「VerticalAlign」を参照してください

使用例使用例

DesignerAutoFormat オブジェクトStyle プロパティ使用してコントロール書式適用する方法次のコード例示します

' Applies styles based on the Name of the AutoFormat
Public Overrides Sub Apply(ByVal
 inLabel As Control)
    If TypeOf inLabel Is
 IndentLabel Then
        Dim ctl As IndentLabel = CType(inLabel,
 IndentLabel)

        ' Apply formatting according to the Name
        If Me.Name.Equals("MyClassic")
 Then
            ' For MyClassic, apply style elements directly to the control
            ctl.ForeColor = Color.Gray
            ctl.BackColor = Color.LightGray
            ctl.Font.Size = FontUnit.XSmall
            ctl.Font.Name = "Verdana,Geneva,Sans-Serif"
        ElseIf Me.Name.Equals("MyBright")
 Then
            ' For MyBright, apply style elements to the Style object
            Me.Style.ForeColor = Color.Maroon
            Me.Style.BackColor = Color.Yellow
            Me.Style.Font.Size = FontUnit.Medium

            ' Merge the AutoFormat style with the control's style
            ctl.MergeStyle(Me.Style)
        Else
            ' For the Default format, apply style elements to the control
            ctl.ForeColor = Color.Black
            ctl.BackColor = Color.Empty
            ctl.Font.Size = FontUnit.XSmall
        End If
    End If
End Sub
// Applies styles based on the Name of the AutoFormat
public override void Apply(Control inLabel)
{
    if (inLabel is IndentLabel)
    {
        IndentLabel ctl = (IndentLabel)inLabel;

        // Apply formatting according to the Name
        if (this.Name == "MyClassic")
        {
            // For MyClassic, apply style elements directly to the control
            ctl.ForeColor = Color.Gray;
            ctl.BackColor = Color.LightGray;
            ctl.Font.Size = FontUnit.XSmall;
            ctl.Font.Name = "Verdana,Geneva,Sans-Serif";
        }
        else if (this.Name
 == "MyBright")
        {
            // For MyBright, apply style elements to the Style property
            this.Style.ForeColor = Color.Maroon;
            this.Style.BackColor = Color.Yellow;
            this.Style.Font.Size = FontUnit.Medium;

            // Merge the AutoFormat style with the control's style
            ctl.MergeStyle(this.Style);
        }
        else
        {
            // For the Default format, apply style elements to the control
            ctl.ForeColor = Color.Black;
            ctl.BackColor = Color.Empty;
            ctl.Font.Size = FontUnit.XSmall;
        }
    }
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DesignerAutoFormatStyle クラス
DesignerAutoFormatStyle メンバ
System.Web.UI.Design 名前空間
VerticalAlign
その他の技術情報
Web フォームデザインサポート


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

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

辞書ショートカット

すべての辞書の索引

「DesignerAutoFormatStyle.VerticalAlign プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS