Javascript: TXTextControl.Selection.getUnderline Method

Gets the underlining styles of the selected text. Takes a callback function as a parameter which is called with the underlining styles of the selected text.

Introduced: 26.0.

Syntax

[JavaScript]
<void> Selection.getUnderline(<function> callback);
Parameter Description
callback

A function with one parameter. Is called with the underlining styles of the selected text. The parameter is a FontUnderlineStyle. The property's default value is FontUnderlineStyle.None. The property returns its default value when the text selection contains multiple characters with mixed styles.

See Also