Vcl.Grids.TCustomGrid.ColWidths
Delphi
property ColWidths[Index: Longint]: Integer read GetColWidths write SetColWidths;
C++
__property int ColWidths[int Index] = {read=GetColWidths, write=SetColWidths};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
property | protected | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomGrid |
説明
グリッド内の列すべての幅(ピクセル単位)を示します。
ColWidths プロパティは,Index パラメータで指定された列の各セルの幅を特定します。インデックス 0 は最初の列を示します。実行時に ColWidths を設定すると,個々の列の幅が変わります。
列の幅が,マウスでサイズ変更するか,ColWidths プロパティを使用する方法で明示的に設定されていない場合,列の幅は DefaultColWidth となります。
ColWidths 配列内のエントリ数を知るには ColCount プロパティを使用します。