Remarks
The property returns null when the text selection contains multiple paragraphs with different hanging indents.
The WPF.
Gets or sets the hanging indent, in twips, at the current input position. If text is selected, the property specifies the hanging indent of the whole selected text. A negative value indicates an additional indent of the paragraph's first line.
public int? HangingIndent { get; set; }
Public Property HangingIndent() As Nullable(Of Integer)
The following XAML example binds the Hanging
?
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
?
<Window.Resources>
<tx:MeasureConverter Unit="Centimeter" x:Key="twipsConv" />
</Window.Resources>
?
<TextBox
Text="{Binding
ElementName=textControl1,
Path=InputFormat.HangingIndent,
Converter={StaticResource twipsConv},
Mode=TwoWay}" />
The property returns null when the text selection contains multiple paragraphs with different hanging indents.
The WPF.