FMX.Grid.TGridModel.OnDrawColumnBackground

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDrawColumnBackground: TDrawColumnCellEvent read FOnDrawColumnBackground write FOnDrawColumnBackground;

C++

__property TDrawColumnCellEvent OnDrawColumnBackground = {read=FOnDrawColumnBackground, write=FOnDrawColumnBackground};

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 the background of a cell, and allows you to draw the cell background yourself to customize it.

The handler of OnDrawColumnBackground receives the following parameters:

  • Sender is the presentation object that owns this model.
  • Canvas is the canvas where you can draw the cell background.
  • 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.

OnDrawColumnBackground occurs before OnDrawColumnCell.

See Also