TXTextControl.InputFormat.RightToLeft Property

Gets or sets a value specifying whether the writing direction is right-to-left at the current input position. If text is selected, the property specifies this attribute for the whole selected text.

Introduced: 20.0.

Syntax

[C#]
public bool? RightToLeft { get; set; }
[Visual Basic]
Public Property RightToLeft() As Nullable(Of Boolean)

Remarks

The property returns null, if the text selection contains multiple paragraphs with mixed setting.

Example

The following XAML example binds the RightToLeft property to a ToggleButton:

<ToggleButton 
   Height="29"
   Name="buttonRightToLeft"
   IsChecked="{Binding ElementName=textControl1, Path=InputFormat.RightToLeft, Mode=TwoWay}">
   Right to Left</ToggleButton>

See Also