FMX.Grid.TGridModel.OnDrawColumnCell
Delphi
property OnDrawColumnCell: TDrawColumnCellEvent read FOnDrawColumnCell write FOnDrawColumnCell;
C++
__property TDrawColumnCellEvent OnDrawColumnCell = {read=FOnDrawColumnCell, write=FOnDrawColumnCell};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| event | public | FMX.Grid.pas FMX.Grid.hpp |
FMX.Grid | TGridModel |
Description
Occurs when the presentation needs to draw a cell, and allows you to draw the cell yourself to customize it.
The handler of OnDrawColumnCell receives the following parameters:
Senderis the presentation object that owns this model.Canvasis the canvas where you can draw.Columnis the column that contains the cell.Boundsindicates the cell boundaries.Rowis the row number of the cell.Valueis the cell value.Stateis the drawing state of the cell.
OnDrawColumnCell occurs after OnDrawColumnBackground.