TcxCustomMemoProperties.Alignment Property
In This Article
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 |
---|---|
ta |
Text is aligned to the left side of a control. |
ta |
Text is centered horizontally. |
ta |
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