Vcl.Grids.TCustomDrawGrid.DrawCell

提供: RAD Studio API Documentation
移動先: 案内検索

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 イベントをブロックします。

関連項目