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 の後に発生します。