[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Grids' (#lcl)

# TGridColumns.FontChanged

Performs actions needed when the Font for the grid control is changed.

## Declaration

Source position: grids.pas line 654

`protected procedure TGridColumns.FontChanged;`

## Description

FontChanged is an overridden method used to perform actions needed when the Font for the grid control has been changed.

FontChanged ensures that the font used for the Canvas is updated to use the value in Font when csCustomPaint is included in the ControlState flags.

Otherwise, the inherited method is called to signal the change in the Font property. The FontChanged method in the Columns collection is also called (when enabled). The new Font is assigned to TitleFont and TitleFontIsDefault is reset to True.

## See also

TCustomGrid.TitleFont |  | The font used for text in a column title.
TGridColumns |  | Collection used to store column definitions for a grid control.
TGridColumn.Font |  | The font used for text displayed in the column.
TCustomControl.FontChanged |  | Performs actions needed when the Font for the control has been changed.
TControl.ControlState |  | Contains state flags which indicate whether the control has been clicked, data is being read, or the control is being re-drawn, etc.
TControl.Font |  | The font to be used for text display in this control.