Limitations
Read only.
Returns an array of all supported underline styles. This property can be used to fill a combo box or a menu.
public FontUnderlineStyle[] UnderlineStyles { get; }
Public ReadOnly Property UnderlineStyles() As FontUnderlineStyle()
Member | Description |
---|---|
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
?
xmlns:tx="clr-namespace:TXTextControl.WPF;assembly=TXTextControl.WPF"
?
<Window.Resources>
<tx:BooleanConverter x:Key="enumboolconv" />
</Window.Resources>
?
<MenuItem
IsCheckable="true"
Header="{Binding ElementName=textControl1, Path=InputFormat.UnderlineStyles[0], Mode=OneTime}"
IsChecked="{Binding
ElementName=textControl1,
Path=InputFormat.UnderlineStyle,
Converter={StaticResource enumboolconv}, ConverterParameter=Single}"/>
Read only.