Remarks
The property returns null when the text selection contains multiple paragraphs with different left indents.
The WPF.
Gets or sets the left indent, in twips, at the current input position. If text is selected, the property specifies the left indent of the whole selected text.
public int? LeftIndent { get; set; }
Public Property LeftIndent() As Nullable(Of Integer)
The following XAML example binds the Left
?
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
?
<Window.Resources>
<tx:MeasureConverter Unit="Centimeter" x:Key="twipsconv" />
</Window.Resources>
?
<TextBox
Height="21"
Name="textBoxLeftIndent"
Text="{Binding ElementName=textControl1,
Path=InputFormat.LeftIndent,
Converter={StaticResource twipsconv},
Mode=TwoWay}"/>
The property returns null when the text selection contains multiple paragraphs with different left indents.
The WPF.