Sign in Join
FPDoc Onlineexperiment

TListColumn.Alignment property

Member of TListColumnpublishedIn unit ComCtrls

Sets the horizontal alignment for the text displayed in the column.

Declaration

pascal
property Alignment: TAlignment read FAlignment write SetAlignment default taLeftJustify;

Description

Alignment is a TAlignment property with the horizontal alignment for the text displayed in the column. It affects both the column Caption and any list item or SubItem values in the column.

Use taRightJustify to align text values to the right edge for the column. Use taCenter to center text values in the width for the column.

The default value for the property is taLeftJustify. Changing the value for the property calls the Changed method to update the column in its Collection. The widgetset class for the list view control is notified of the new alignment value when its handle is valid.

See also

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