Remarks
The property's default value is Font
The property returns Font
Gets or sets the underline style at the current input position. If text is selected, the property specifies this attribute for the whole selected text. This property determines the style for the Underline property.
public FontUnderlineStyle UnderlineStyle { get; set; }
Public Property UnderlineStyle() As FontUnderlineStyle
Member | Description |
---|---|
None | Text is not underlined. |
Single | Text is underlined with a single line. |
Doubled | Text is underlined with a doubled line. |
Single |
Only the words of the text are underlined with a single line. |
Doubled |
Only the words of the text are underlined with a doubled line. |
The following XAML example binds the Underline
<ComboBox
Height="24"
Name="comboboxUnderlineStyle"
ItemsSource="{Binding ElementName=textControl1, Path=InputFormat.UnderlineStyles, Mode=OneTime}"
SelectedValue="{Binding ElementName=textControl1, Path=InputFormat.UnderlineStyle, Mode=TwoWay}"/>
The property's default value is Font
The property returns Font