テーブルレイアウト項目 - Alignmentプロパティ
セル内コントロールの配置
テーブルレイアウト項目 (PRIM_TBLO.Item) のメンバ
データタイプ - 列挙
詳細
Alignment プロパティは、定義されたセル内の Row、 Column、 RowSpan および ColumnSpan によって managed コントロールの位置を管理します。
セルのサイズが調整されたり、移動された場合、このコントロールは必要に応じて、配置のルールに従った位置変更が行われます。
許容値
列挙値 | 説明 |
|---|---|
BottomCenter | 水平にセンタリングされ、下端に配置 |
BottomLeft | 左揃えにして下端に配置 |
BottomRight | 右揃えにして下端に配置 |
Center | 水平および垂直に中央に配置 |
CenterLeft | 左揃えにして垂直方向中央に配置 |
CenterRight | 右揃えにして垂直方向中央に配置 |
TopCenter | 水平にセンタリングされ、上端に配置 |
TopLeft | 左揃えにして上端に配置 |
TopRight | 右揃えにして上端に配置 |
例
この例では、両方のボタンに中央 Alignment があり、両方が Row2 、 Column2 にあります。
ただし、 Button2 には 2 の RowSpan や ColumnSpan があり、結果は 2x2 の中央に配置されます。
Begin_Com Role(*EXTENDS #PRIM_WEB) Height(457) Width(889) Layoutmanager(#TableLayout1)
Define_Com Class(#PRIM_TBLO) Name(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Column) Name(#Column1) Displayposition(1) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Column) Name(#Column2) Displayposition(2) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Column) Name(#Column3) Displayposition(3) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Column) Name(#Column4) Displayposition(4) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Row) Name(#Row1) Displayposition(1) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Row) Name(#Row2) Displayposition(2) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Row) Name(#Row3) Displayposition(3) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Row) Name(#Row4) Displayposition(4) Parent(#TableLayout1)
Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem1) Column(#Column2) Manage(#Button1) Parent(#TableLayout1) Row(#Row2) Sizing(None)
Define_Com Class(#PRIM_TBLO.Item) Name(#LayoutItem2) Column(#Column2) Manage(#Button2) Parent(#TableLayout1) Row(#Row2) Sizing(None) Rowspan(2) Columnspan(2)
Define_Com Class(#PRIM_PHBN) Name(#Button1) Caption('Button1') Displayposition(1) Left(294) Parent(#COM_OWNER) Tabposition(1) Top(160)
Define_Com Class(#PRIM_PHBN) Name(#Button2) Caption('Button2') Displayposition(2) Left(405) Parent(#COM_OWNER) Tabposition(2) Top(217)
End_Com