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

# TGridColumnTitle.Alignment

Horizontal alignment for the text in the column title.

## Declaration

Source position: grids.pas line 502

`published property TGridColumnTitle.Alignment : TAlignment read GetAlignment write SetAlignment stored IsAlignmentStored;`

## Description

Alignment is a TAlignment property which controls the horizontal alignment for the text in the Caption property. The default alignment is taLeftJustify, as returned from GetDefaultAlignment, and causes the title to be displayed aligned to the left edge of the column.

Changing the value for the property causes the ColumnChanged method in Column to be called to update the collection item and reset its WidthChanged property.

Use Layout to control the vertical alignment for the text displayed in the column title.

Use ImageLayout to control the position for the glyph image displayed in the fixed header cell for the column title.

## See also

TGridColumnTitle.Caption |  | Text displayed as the title for the grid column.
TGridColumnTitle.GetDefaultAlignment |  | Returns the default alignment for the column title.
TGridColumnTitle.ImageLayout |  | The layout used for any image in the column title.
TGridColumnTitle.Layout |  | Vertical alignment for the Caption text displayed in 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.
TAlignment