TX Text Control .NET for WPF

FontUnderlineStyle Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the underlining style for the text displayed by the control.

Syntax

public FontUnderlineStyle FontUnderlineStyle { get; set; }

Members

ValueDescription
NoneText is not underlined.
SingleText is underlined with a single line.
DoubledText is underlined with a doubled line.
SingleWordsOnlyOnly the words of the text are underlined with a single line.
DoubledWordsOnlyOnly the words of the text are underlined with a doubled line.

Examples

The following example uses TextControl.FontUnderlineStyle to configure font underline style as part of the text control workflow. The configured value is checked before the workflow continues.

textControl.FontUnderlineStyle = FontUnderlineStyle.DoubledWordsOnly;
Console.WriteLine($"Font Underline Style used by Text Control: {textControl.FontUnderlineStyle}");

Further Reading