Vcl.Grids.TCustomGrid.DrawCellBackground

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

Delphi

procedure DrawCellBackground(const ARect: TRect; AColor: TColor;
AState: TGridDrawState; ACol, ARow: Integer); virtual;

C++

virtual void __fastcall DrawCellBackground(const System::Types::TRect &ARect, System::Uitypes::TColor AColor, TGridDrawState AState, int ACol, int ARow);

プロパティ

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

説明

グリッド内のセルの背景を描画します。

DrawCellBackground は、セルの背景を描画します。TCustomGrid の下位クラスで DrawCellBackground メソッドをオーバーライドし、独自の描画方法を提供できます。

DefaultDrawing プロパティが true ならば、DrawCell が呼び出される前に、セルの背景が描画され、DrawCell が呼び出された後に、固定セルの 3 次元効果またはフォーカスがあるセルのまわりのフォーカスの矩形が描画されます。

ACol パラメータおよび ARow パラメータは、描画対象セルの、列および行のインデックスを示します。ARect パラメータは、キャンバスの座標におけるセルの境界を示します。AState パラメータは、セルが選択されている、入力フォーカスがある、グリッドの固定(非スクロール部分)にあるかどうかを示します。

関連項目