Remarks
The property's default value is Direction.
The property returns its default value, if the text selection contains multiple paragraphs with mixed direction. The Selection.
Gets or sets the writing direction. A paragraph's writing direction can be either left to right or right to left.
Introduced: X10.
public Direction Direction { get; set; }
Public Property Direction() As Direction
Member | Description |
---|---|
Left |
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. |
Right |
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. |
The following example uses the Direction property to set the direction of the paragraph format to Left
TXTextControl.ParagraphFormat format = new TXTextControl.ParagraphFormat();
format.Alignment = TXTextControl.HorizontalAlignment.Center;
format.Frame = TXTextControl.Frame.Box;
format.FrameStyle = TXTextControl.FrameStyle.Double;
format.Direction = TXTextControl.Direction.LeftToRight;
textControl1.Selection.ParagraphFormat = format;
Dim format As TXTextControl.ParagraphFormat = New TXTextControl.ParagraphFormat()
format.Alignment = TXTextControl.HorizontalAlignment.Center
format.Frame = TXTextControl.Frame.Box
format.FrameStyle = TXTextControl.FrameStyle.Double
format.Direction = TXTextControl.Direction.LeftToRight
TextControl1.Selection.ParagraphFormat = format
The property's default value is Direction.
The property returns its default value, if the text selection contains multiple paragraphs with mixed direction. The Selection.