TXTextControl.Selection.Underline Property

Gets or sets underlining styles for the selected text.

Syntax

[C#]
public FontUnderlineStyle Underline { get; set; }
[Visual Basic]
Public Property Underline() As FontUnderlineStyle
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.

Remarks

The property's default value is FontUnderlineStyle.None.

The property returns its default value when the text selection contains multiple characters with mixed styles. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.

Limitations

Runtime only.

See Also