Vcl.DBGrids.TCustomDBGrid.DefaultDrawColumnCell
Delphi
procedure DefaultDrawColumnCell(const Rect: TRect; DataCol: Integer;
Column: TColumn; State: TGridDrawState);
C++
void __fastcall DefaultDrawColumnCell(const System::Types::TRect &Rect, int DataCol, TColumn* Column, Vcl::Grids::TGridDrawState State);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
説明
列セルにテキストを描画します。
DefaultDrawColumnCell メソッドを OnDrawColumnCell イベントハンドラからを呼び出すと,項目のテキスト表現を探し,それをセルに書き込むことができます。DefaultDrawColumnCell は,DefaultDrawing プロパティが true のときにグリッドが描画するのと同じ処理を行います。ただし,セル上に長方形のフォーカス領域を描画することはありません。
Rect パラメータは,キャンバス上のセルの位置を指定します。DataCol パラメータは,列の Columns 配列におけるインデックスを示します。Column パラメータは,セルの表示属性と項目バインディングを表す TColumn オブジェクトを示します。State パラメータは,セルに入力フォーカスがあるか,セルが選択されているか,およびセルが列ヘッダーのような固定(データ以外)セルであるかを指定します。