FMX.Grid.TCustomGrid.OnDrawColumnCell

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

Delphi

property OnDrawColumnCell: TDrawColumnCellEvent read GetOnDrawColumnCell write SetOnDrawColumnCell;

C++

__property TDrawColumnCellEvent OnDrawColumnCell = {read=GetOnDrawColumnCell, write=SetOnDrawColumnCell};

プロパティ

種類 可視性 ソース ユニット
event public
FMX.Grid.pas
FMX.Grid.hpp
FMX.Grid TCustomGrid


説明

グリッドがセルを描画する必要がある際に発生します。

OnDrawColumnCell イベント ハンドラを記述すると、グリッドのセル内にあるデータに対するカスタマイズされた描画を提供することができます。

DefaultDrawing プロパティが True に設定されている場合、セルは OnDrawColumnCell イベントの前に描画されます。False に設定されている場合、グリッドは何も描画しません。

また、このイベント ハンドラでは、DefaultDrawCell メソッドを呼び出してデフォルトの描画で処理することも可能です。DefaultDrawingFalse に設定されているが、デフォルト描画の前に何か描画する必要がある場合などに有用です。

関連項目