Skip to main content

TcxCustomMemoProperties.Alignment Property

Defines the horizontal alignment of text displayed by a memo control.

Declaration

property Alignment: TAlignment read; write;

Property Value

Type
TAlignment

Remarks

Use the Alignment property to set text alignment. The following table lists possible alignment formats:

Value Meaning
taLeftJustify Text is aligned to the left side of a control.
taCenter Text is centered horizontally.
taRightJustify Text is aligned to the right side of a control.

Data-aware editors have horizontal alignment by default. When an editor represents data from a TDataSet, the default alignment is defined by the TField.Alignment property. You can redefine the alignment for data-aware controls by setting it via the Alignment property. To restore the default alignment, use the RestoreDefaults method.

See Also