TXTextControl.ParagraphFormat.Direction Property

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

Introduced: 20.0.

Syntax

[C#]
public Direction Direction { get; set; }
[Visual Basic]
Public Property Direction() As Direction
Value Description
LeftToRight The writing 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.
RightToLeft The writing 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.

Remarks

The property's default value is Direction.LeftToRight.

The property returns its default value, if the text selection contains multiple paragraphs with mixed direction. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.

See Also