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

TGridColumnTitle.Color

The background color for the column title.

Declaration

Source position: grids.pas line 504

published property TGridColumnTitle.Color : TColor
  read GetColor
  write SetColor
  stored IsColorStored;

Description

Color is a TColor property which contains the color used to paint the background for the column header where the title is displayed. If an explicit value has not been assigned, the value from GetDefaultColor is used in the property, and contains the FixedColor for the grid where the Column is defined.

Changing the value for the property causes the ColumnChanged method in Column to be called. This causes the collection item to be updated in the grid control, and the WidthChanged property in Column is reset.

Use the Color property in Font to control the color for the text displayed in the fixed header cell.

See also

TGridColumnTitle.Font

  

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

TGridColumnTitle.GetDefaultColor

  

Returns the default color for the column title.

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.

TCustomGrid.FixedColor

  

The color used for the fixed cells in the grid.

TFont.Color

  

Color used to render text using the font.


Version 4.0 Generated 2025-05-03 Home