API:Vcl.ValEdit.TValueListEditor.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, Vcl::Grids::TGridDrawState AState);

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
Vcl.ValEdit.pas
Vcl.ValEdit.hpp
Vcl.ValEdit TValueListEditor

説明

OnDrawCell イベントを生成します。

Vcl.ValEdit.TValueListEditor.DrawCell は Vcl.Grids.TCustomDrawGrid.DrawCell を継承しています。以下の内容はすべて Vcl.Grids.TCustomDrawGrid.DrawCell を参照しています。

OnDrawCell イベントを生成します。

DrawCell メソッドは,グリッド内のセルが描画されるたびに自動的に呼び出されます。DefaultDrawing プロパティが true の場合は,DrawCell が呼び出される前に,セルの背景がペイントされ,DrawCell の後で,固定セルの 3D 効果またはフォーカスのあるセルの周りのフォーカス四角形が描画されます。TCustomDrawGrid の下位オブジェクトは,このメソッドをオーバーライドして,セルの内容を描画し,OnDrawCell イベントをブロックします。

関連項目