FontUnderlineStyle Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
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; }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 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}");textControl.FontUnderlineStyle = FontUnderlineStyle.DoubledWordsOnly
Console.WriteLine($"Font Underline Style used by Server Text Control: {textControl.FontUnderlineStyle}")