PRIM_LIST.Columnクラス - CellSizingプロパティ
コンテンツがセルの一部のみを使用できるようにリストセルのサイズを調整
PRIM_LIST.Columnクラス (PRIM_LIST.Column) のメンバ
データタイプ - 列挙
詳細
CellSizing プロパティは、セルの内容のサイズ変更動作を制御します。
典型的には、内容が利用可能な空間を満たすことが望ましい。しかし、 Button や Image 列は、列や行の幅や高さに関係なく、セルを特定のサイズとして定義できるという利点があります。
CellAlignment と CellMarginLeft、 CellMarginRight、 CellMarginTop および CellMarginBottom プロパティを使用して配置できます。
許容値
列挙値 | 説明 |
|---|---|
FitBoth | 中身がセルを完全に埋める |
FitToHeight | 中身はセルと同じ高さになる。CellWidth プロパティが幅を制御する |
FitToWidth | 中身はセルと同じ幅になる。CellHeight プロパティが高さを制御する |
None | 中身の高さと幅はCellHeight 及び CellWidth プロパティによって制御される |
例
この例では、ボタンはわずかなインデントで中央左端に揃えられています。
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