FontUnderlineStyle Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the underlining style for the text displayed by the control.
Syntax
public FontUnderlineStyle FontUnderlineStyle { get; set; }Public Property FontUnderlineStyle As FontUnderlineStyleMembers
| Value | Description |
|---|---|
| None | Text is not underlined. |
| Single | Text is underlined with a single line. |
| Doubled | Text is underlined with a doubled line. |
| SingleWordsOnly | Only the words of the text are underlined with a single line. |
| DoubledWordsOnly | Only 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}");textControl.FontUnderlineStyle = FontUnderlineStyle.DoubledWordsOnly
Console.WriteLine($"Font Underline Style used by Text Control: {textControl.FontUnderlineStyle}")