Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomMemoProperties.Alignment Property

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

#Declaration

Delphi
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