TXTextControl.InputFormat.RightIndent Property

Gets or sets the right indent, in twips, at the current input position. If text is selected, the property specifies the right indent of the whole selected text.

Syntax

[C#]
public int? RightIndent { get; set; }
[Visual Basic]
Public Property RightIndent() As Nullable(Of Integer)

Remarks

The property returns null when the text selection contains multiple paragraphs with different right indents.

The WPF.MeasureConverter can be used to convert the property value to another measuring unit.

Example

The following XAML example binds the RightIndent property to a text box. The value of the right indent is converted to centimeter:

…
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
…
<Window.Resources>
  <tx:MeasureConverter Unit="Centimeter" x:Key="twipsconv" />
</Window.Resources>
…
<TextBox 
   Height="21" 
   Name="textBoxRightIndent" 
   Text="{Binding ElementName=textControl1,
      Path=InputFormat.RightIndent,
      Converter={StaticResource twipsconv},
      Mode=TwoWay}"/>

See Also