TX Text Control ActiveX

Alignment Property

Property

Specifies the alignment of text in a Text Control.

Syntax

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

Data Types

Integer.

Remarks

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

See Also