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


参照

すべてのコンポーネント クラス
テクニカルリファレンス

  • No labels