Sign in Join
FPDoc Onlineexperiment

TGridColumn.Alignment property

Member of TGridColumnpublishedIn unit Grids

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

Declaration

pascal
property 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.