Remarks
The property returns null when the text selection contains multiple characters with mixed styles.
Gets or sets a value specifying whether text is underlined at the current input position. The underlining style is determined through the Underline
public bool? Underline { get; set; }
Public Property Underline() As Nullable(Of Boolean)
The following XAML example binds the Underline property to a check box:
<CheckBox
Height="20"
Name="checkBoxUnderline"
IsChecked="{Binding ElementName=textControl1, Path=InputFormat.Underline, Mode=TwoWay}">
Underline</CheckBox>
The property returns null when the text selection contains multiple characters with mixed styles.