TX Text Control .NET for Windows Forms Documentation

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
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.

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

 
 
 

Products

Support

Downloads

Corporate

Buy Now