TableRow.VerticalAlign プロパティ

定義

行の内容の垂直方向の配置を取得または設定します。

public:
 virtual property System::Web::UI::WebControls::VerticalAlign VerticalAlign { System::Web::UI::WebControls::VerticalAlign get(); void set(System::Web::UI::WebControls::VerticalAlign value); };
[System.ComponentModel.Bindable(true)]
public virtual System.Web.UI.WebControls.VerticalAlign VerticalAlign { get; set; }
public virtual System.Web.UI.WebControls.VerticalAlign VerticalAlign { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.VerticalAlign : System.Web.UI.WebControls.VerticalAlign with get, set
member this.VerticalAlign : System.Web.UI.WebControls.VerticalAlign with get, set
Public Overridable Property VerticalAlign As VerticalAlign

プロパティ値

VerticalAlign

VerticalAlign 値のいずれか 1 つ。 既定値は NotSet です。

属性

次の例では、プロパティの使用方法を VerticalAlign 示します。 完全な作業コード例については、クラスの概要に関するトピックを TableRow 参照してください。

// Create a TableItemStyle object that can be
// set as the default style for all cells
// in the table.
TableItemStyle tableStyle = new TableItemStyle();
tableStyle.HorizontalAlign = HorizontalAlign.Center;
tableStyle.VerticalAlign = VerticalAlign.Middle;
tableStyle.Width = Unit.Pixel(100);
' Create a TableItemStyle object that can be
' set as the default style for all cells
' in the table.
Dim tableStyle As New TableItemStyle()
tableStyle.HorizontalAlign = HorizontalAlign.Center
tableStyle.VerticalAlign = VerticalAlign.Middle
tableStyle.Width = Unit.Pixel(100)

注釈

行の内容の VerticalAlign 垂直方向の配置を指定するには、このプロパティを使用します。 次の表に、使用可能な値を示します。

垂直方向のアラインメント [説明]
NotSet 垂直方向の配置は設定されていません。
Top 行の内容は、行の先頭に揃えられます。
Middle 行の内容は、行の中央に揃えられます。
Bottom 行の内容は、行の下部に揃えられます。

適用対象

こちらもご覧ください