Vcl.Grids.TCustomDrawGrid.DrawCell
Delphi
procedure DrawCell(ACol, ARow: Longint; ARect: TRect; AState: TGridDrawState); override;
C++
virtual void __fastcall DrawCell(int ACol, int ARow, const System::Types::TRect &ARect, TGridDrawState AState);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
protected | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomDrawGrid |
説明
OnDrawCell イベントを生成します。
DrawCell メソッドは,グリッド内のセルが描画されるたびに自動的に呼び出されます。DefaultDrawing プロパティが true の場合は,DrawCell が呼び出される前に,セルの背景がペイントされ,DrawCell の後で,固定セルの 3D 効果またはフォーカスのあるセルの周りのフォーカス四角形が描画されます。TCustomDrawGrid の下位オブジェクトは,このメソッドをオーバーライドして,セルの内容を描画し,OnDrawCell イベントをブロックします。