TXTextControl.TXTextControl.ChangeTextDirection Method

Changes the text direction of all selected paragraphs. When the direction of a paragraph is changed this paragraph's alignment is toggled from left to right or from right to left. The alignment of centered and justified paragraphs is not changed. Left and right tabulators are also toggled.

Introduced: 20.0.

Syntax

TXTextControl.ChangeTextDirection Direction
Parameter Description
Direction

This parameter specifies how to change the text direction. Possible values are the following:


Constant Description
txRightToLeft (1) The text direction is right to left, which means that blocks of text with left to right and right to left characters are ordered from right to left.
txLeftToRight (2) The text direction is left to right, which means that blocks of text with left to right and right to left characters are ordered from left to right.

Return Value

The method returns True, if the text direction could be changed. The method returns False, if an error has occurred.

Data Types

Direction:    Integer
Return value:    Boolean

See Also