PRIM_LIST.Column クラス - CellAlignment プロパティ

リスト セルのコンテンツの位置

PRIM_LIST.Column クラス (PRIM_LIST.Column) のメンバ

データ タイプ - 列挙

詳細

CellAlignment プロパティは、セルの内容の位置を制御します。
 
CellSizing が FitBoth の場合、セルの内容がスペースを埋めるため、このプロパティは無効です。
 
しかし、 CellSizing を強制されていない場合 CellHeightCellWidth プロパティは、コンテンツサイズを定義するために使用されます。
 
CellAlignment と CellMarginLeft, CellMarginRight, CellMarginTop および CellMarginBottom プロパティを使用して配置できます。

許容値

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

この例では、ボタンはわずかなインデントで中央左端に揃えられています。
Begin_Com Role(*EXTENDS #PRIM_WEB)
 
   Define_Com Class(#PRIM_LIST) Name(#List1) Displayposition(1) Left(24) Parent(#COM_OWNER) Tabposition(1) Top(24) Height(417) Width(625) Rowheight(29)
   Define_Com Class(#PRIM_LIST.Button) Name(#ColumnButton1) Columnwidth(128) Displayposition(1) Parent(#List1) Cellsizing(None) Cellwidth(80) Cellalignment(CenterLeft) Cellmarginleft(3)
 
   Evtroutine Handling(#Com_owner.CreateInstance)
 
      Begin_Loop To(10)
 
      Add_Entry To_List(#List1)
 
         #ColumnButton1.CurrentItem.Caption := #List1.Items.ItemCount.Asstring
 
 End_Loop
 
 Endroutine
 
 End_Com
 
 
 

参照

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

テクニカルリファレンス

EPC142030 February 2019