Sign in Join
FPDoc Onlineexperiment

TGridColumnTitle.Layout property

Member of TGridColumnTitlepublishedIn unit Grids

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

Declaration

pascal
property Layout: TTextLayout read GetLayout write SetLayout stored IsLayoutStored;

Description

Layout is a TTextLayout property which indicates the vertical alignment for the caption text within the fixed header for the column. See TTextLayout for the values allowed in the property and their meanings.

If an explicit value has not been assigned to the property, the value from the GetDefaultLayout method (tlCenter) is used as the property value.

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

Use Alignment to control the horizontal alignment for the Caption text displayed in the column title.

Use MultiLine to control text wrapping when Caption is longer than the display width for the Column.

Use ImageLayout to control the placement of an image relative to the Caption in the column title.

See also

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