TX Text Control .NET for Windows Forms

FontUnderlineStyle Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.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 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 TextControl.FontUnderlineStyle to configure font underline style as part of the text control workflow. The change is then applied to the active document or user interface.

textControl.FontUnderlineStyle = FontUnderlineStyle.DoubledWordsOnly;
textControl.Update();

Further Reading