Sign in Join
FPDoc Onlineexperiment

TGridColumnTitle.Alignment property

Member of TGridColumnTitlepublishedIn unit Grids

Horizontal alignment for the text in the column title.

Declaration

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

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