FMX.Grid.TGridModel.OnDrawColumnCell
Delphi
property OnDrawColumnCell: TDrawColumnCellEvent read FOnDrawColumnCell write FOnDrawColumnCell;
C++
__property TDrawColumnCellEvent OnDrawColumnCell = {read=FOnDrawColumnCell, write=FOnDrawColumnCell};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
event | public | FMX.Grid.pas FMX.Grid.hpp |
FMX.Grid | TGridModel |
説明
プレゼンテーションがセルを描画する必要がある際に発生し、セルを自分自身で描画し、それをカスタマイズできるようにします。
OnDrawColumnCell のハンドラは次のパラメータを取得します:
Sender
は、このモデルを所有するプレゼンテーション オブジェクトです。Canvas
は、描画することができるキャンバスです。Column
は、セルを格納する列です。Bounds
は、セルの境界を示します。Row
は、セルの行番号です。Value
は、セルの値です。State
は、セルの描画状態です。
OnDrawColumnCell は、OnDrawColumnBackground の後に発生します。