TXTextControl.InputFormat.LeftToRight Property

Gets or sets a value specifying whether the writung direction is left-to-right 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? LeftToRight { get; set; }
[Visual Basic]
Public Property LeftToRight() 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 LeftToRight property to a ToggleButton:

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

See Also