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

# TGridColumn.Alignment

Indicates the alignment for values displayed in the column: left or right aligned, or centered.

## Declaration

Source position: grids.pas line 611

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

## Description

Alignment is a TAlignment property which indicates how data displayed in the column is aligned. If Alignment has not been assigned, the value from GetDefaultAlignment is used in the property. Changing the value for the property causes the ColumnChanged method to be called to update the collection item and reset the value in WidthChanged to False.

Alignment is used when the Grid control prepares its Canvas to draw data cells in the column.

## See also

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.
TGridColumn.Grid |  | The grid control to which this column belongs.
TGridColumns.Items |  | Provides indexed access to column definitions in the collection.
TCustomGrid.PrepareCanvas |  | Prepares the canvas for drawing the cell at the specified location.
TCustomGrid.DrawCellText |  | Draws the specified text in the given text rectangle.
TCollectionItem
TAlignment