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:
Sender
is the presentation object that owns this model.Canvas
is the canvas where you can draw.Column
is the column that contains the cell.Bounds
indicates the cell boundaries.Row
is the row number of the cell.Value
is the cell value.State
is the drawing state of the cell.
OnDrawColumnCell occurs after OnDrawColumnBackground.