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

TGridColumnTitle.Caption

Text displayed as the title for the grid column.

Declaration

Source position: grids.pas line 503

published property TGridColumnTitle.Caption : TCaption
  read GetCaption
  write SetCaption
  stored IsCaptionStored;

Description

Caption is a TCaption property which contains the text displayed as the title for a grid column in a fixed cell header. If an explicit value has not been assigned to Caption, the value from GetDefaultCaption is used as the property value ('Title').

Changing the value for the property causes the ColumnChanged method in Column to be called. This updates the collection item in the Grid where the Column is defined, and resets the value in the WidthChanged property for the Column.

Use Font to control the typeface and display attributes for the text.

Use Alignment to control the horizontal alignment for the text within the cell header.

Use Layout to control the vertical alignment for the text within the cell header.

Use MultiLine to indicate whether the text can be word-wrapped when it is longer than the display width for the column.

Use ImageIndex to specify the glyph displayed for in the cell header for the column.

See also

TGridColumnTitle.Alignment

  

Horizontal alignment for the text in the column title.

TGridColumnTitle.Font

  

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

TGridColumnTitle.Color

  

The background color for the column title.

TGridColumnTitle.ImageIndex

  

Ordinal position for the image displayed in the fixed header for the column title.

TGridColumnTitle.Layout

  

Vertical alignment for the Caption text displayed in the column title.

TGridColumnTitle.MultiLine

  

Indicates whether the column title can be displayed as multiple lines.


Version 4.0 Generated 2025-05-03 Home