Javascript: TXTextControl.Selection.getFormattingStyle Method

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

Introduced: 26.0.

Syntax

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

A function with one parameter. Is called with the formatting style's name of the selected text. The property returns an empty string when the text selection contains multiple characters with different styles.

See Also