TXTextControl.Alignment Property

Specifies the alignment of text in a Text Control.

Syntax

TXTextControl.Alignment [= value]
Setting Description
0 (Default) Text is left-aligned.
1 Text is right-aligned.
2 Text is centered.
3 Text is justified.
4 This value cannot be assigned to the property. Its purpose is to indicate that the selected text contains paragraphs which have different types of alignment.

Remarks

If the FormatSelection property has previously been set to True, changing the Alignment property affects only the currently selected paragaph. If FormatSelection has been set to False the setting applies to the entire control, in which case a value of 4 does not occur.

Data Types

Integer.

See Also