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

TGridColumnTitle.Layout

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

Declaration

Source position: grids.pas line 508

published property TGridColumnTitle.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

TGridColumnTitle.Caption

  

Text displayed as the title for the grid column.

TGridColumnTitle.GetDefaultLayout

  

Returns the default layout for the column title.

TGridColumnTitle.ImageLayout

  

The layout used for any image in the column title.

TGridColumnTitle.MultiLine

  

Indicates whether the column title can be displayed as multiple lines.

TTextLayout

  

Represents the text layout used to render text in its rectangle.


Version 4.0 Generated 2025-05-03 Home