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

TGridColumn.Font

The font used for text displayed in the column.

Declaration

Source position: grids.pas line 616

published property TGridColumn.Font : TFont
  read GetFont
  write SetFont
  stored IsFontStored;

Description

Font is a TFont property which contains the typeface name and display attributes used to display text for cells in the grid column. By default, Font contains the same value assigned to the Grid control and loaded in the FillDefaultFont method. It is applied to the Canvas for the Grid and used in its DrawCellText method.

Changing the value for the property causes IsDefaultFont to be set to False. The ColumnChanged method is called to update the collection item in the Columns collection for the Grid. The value in WidthChanged is also reset to False.

Use the Font property in Title to set attributes for text displayed in the fixed header cells for the column.

See also

TGridColumn.Title

  

Contains the attributes for the title in the fixed header for the column.

TGridColumn.Grid

  

The grid control to which this column belongs.

TGridColumn.ColumnChanged

  

Performs actions needed when a column in the grid is changed.

TGridColumn.WidthChanged

  

True when the width for the column has been changed.

TGridColumnTitle.Font

  

Contains the typeface and text attributes for the Caption displayed in the column title.

TCustomGrid.Columns

  

Definitions for the columns displayed the grid.

TCustomGrid.PrepareCanvas

  

Prepares the canvas for drawing the cell at the specified location.

TCustomGrid.DrawCellText

  

Draws the specified text in the given text rectangle.

TControl.Font

  

The font to be used for text display in this control.

TFont

  

Represents a font used to draw text in an application.


Version 4.0 Generated 2025-05-03 Home