テーブル レイアウト項目 - Alignment プロパティ

セル内コントロールの配置

テーブル レイアウト項目 (PRIM_TBLO.Item) のメンバ

データ タイプ - 列挙

詳細

Alignment プロパティは、定義されたセル内の RowColumnRowSpan および ColumnSpan によって managed コントロールの位置を管理します。
 
If the cell resizes or moves, the control will reposition as required, following the alignment rules.

許容値

列挙値説明
BottomCenter水平にセンタリングされ、下端に配置
BottomLeft左揃えにして下端に配置
BottomRight右揃えにして下端に配置
Center水平および垂直に中央に配置
CenterLeft左揃えにして垂直方向中央に配置
CenterRight右揃えにして垂直方向中央に配置
TopCenter水平にセンタリングされ、上端に配置
TopLeft左揃えにして上端に配置
TopRight右揃えにして上端に配置

この例では、両方のボタンに中央 Alignment があり、両方が Row2 、 Column2 にあります。
 
ただし、 Button2 には 2 の RowSpanColumnSpan があり、結果は 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
 

参照

すべてのコンポーネント クラス

テクニカルリファレンス

2018 - V14SP1