FontUnderlineStyle Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }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 change is then applied to the active document or user interface.
textControl.FontUnderlineStyle = FontUnderlineStyle.DoubledWordsOnly;
textControl.Update();textControl.FontUnderlineStyle = FontUnderlineStyle.DoubledWordsOnly
textControl.Update()