Sign in Join
FPDoc Onlineexperiment

TCustomGrid.SetCanvasFont procedure

Member of TCustomGridprotectedIn unit Grids

Sets the Canvas font to the specified value.

Declaration

pascal
procedure SetCanvasFont(aFont: TFont)

Arguments

aFont

Font applied to the canvas for the grid.

Description

SetCanvasFont is used to assign the TFont instance in AFont to the Canvas for the grid control.

Different fonts can be used to render the title in fixed headers and the data in the cells. The font used is determined (and assigned) when the PrepareCanvas method configures the Canvas to draw cells in the grid. SetCanvasFont ensures that the new font is stored in an internal member when the font is assigned to the Canvas.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.