TX Text Control .NET for WPF

FontUnderlineStyle Property

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

Description

Gets or sets underlining style for the text displayed by the control. This property only determines the style. The ServerTextControl.Font property determines whether text is underlined or not.

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 ServerTextControl.FontUnderlineStyle to configure font underline style as part of the server text control workflow. The configured value is checked before the workflow continues.

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

Further Reading