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

コンテンツがセルの一部のみを使用できるようにリスト セルのサイズを調整

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

データ タイプ - 列挙

詳細

CellSizing プロパティは、セルの内容のサイズ変更動作を制御します。
 
典型的には、内容が利用可能な空間を満たすことが望ましい。しかし、 ButtonImage 列は、列や行の幅や高さに関係なく、セルを特定のサイズとして定義できるという利点があります。
 
CellAlignmentCellMarginLeftCellMarginRightCellMarginTop および 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
 
 
 

参照

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

テクニカルリファレンス

EPC142030 February 2019