TXTextControl.TextDirection Property

Specifies the writing direction. A paragraph's writing direction can be either left to right or right to left.

Introduced: 20.0.

Syntax

TXTextControl.TextDirection [= value]
Setting Description
txRightToLeft The text is formatted from right to left.
(Default) txLeftToRight The text is formatted from left to right.
0 Get only. The property returns 0, if more than one paragraph is selected and these paragraphs have different writing directions.

Remarks

If the FormatSelection property has previously been set to True, changing this property affects only the currently selected paragaphs. If FormatSelection has been set to False, the setting applies to the entire control.

Data Types

Integer.

See Also