API:FMX.Grid.TGrid.OnDrawColumnCell
Delphi
property OnDrawColumnCell: TDrawColumnCellEvent read GetOnDrawColumnCell write SetOnDrawColumnCell;
C++
__property OnDrawColumnCell;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
event | published | FMX.Grid.pas FMX.Grid.hpp |
FMX.Grid | TGrid |
説明
グリッドがセルを描画する必要がある際に発生します。
FMX.Grid.TGrid.OnDrawColumnCell は FMX.Grid.TCustomGrid.OnDrawColumnCell を継承しています。以下の内容はすべて FMX.Grid.TCustomGrid.OnDrawColumnCell を参照しています。
グリッドがセルを描画する必要がある際に発生します。
OnDrawColumnCell イベント ハンドラを記述すると、グリッドのセル内にあるデータに対するカスタマイズされた描画を提供することができます。
DefaultDrawing プロパティが True に設定されている場合、セルは OnDrawColumnCell イベントの前に描画されます。False に設定されている場合、グリッドは何も描画しません。
また、このイベント ハンドラでは、DefaultDrawCell メソッドを呼び出してデフォルトの描画で処理することも可能です。DefaultDrawing が False に設定されているが、デフォルト描画の前に何か描画する必要がある場合などに有用です。