Remarks
The property returns null when the text selection contains multiple paragraphs with different line spacing.
Gets or sets the line spacing, in percent, at the current input position. If text is selected, the property specifies the line spacing of the whole selected text.
public int? LineSpacing { get; set; }
Public Property LineSpacing() As Nullable(Of Integer)
The following XAML example shows how to bind the Line
?
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
?
<Window.Resources>
<tx:BooleanConverter x:Key="boolConv" />
</Window.Resources>
?
<MenuItem
Header="1.5"
IsCheckable="True"
IsChecked="{Binding
ElementName=textControl1,
Path=InputFormat.LineSpacing,
Converter={StaticResource boolConv},
ConverterParameter=150}" />
The property returns null when the text selection contains multiple paragraphs with different line spacing.