FMX.Grid.TStringGrid.OnDrawColumnCell

提供:RAD Studio API Documentation

Delphi

property OnDrawColumnCell: TDrawColumnCellEvent read GetOnDrawColumnCell write SetOnDrawColumnCell;

C++

__property OnDrawColumnCell;

プロパティ

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

説明

グリッドがセルを描画する必要がある際に発生します。 {{#multireplace:FMX.Grid.TStringGrid.OnDrawColumnCell|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} は {{#multireplace:FMX.Grid.TCustomGrid.OnDrawColumnCell|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を継承しています。以下の内容はすべて {{#multireplace:FMX.Grid.TCustomGrid.OnDrawColumnCell|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を参照しています。

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

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

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

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

関連項目