Javascript: TXTextControl.Selection.getTextBackColor Method

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

Introduced: 26.0.

Syntax

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

A function with one parameter. Is called with the background color of the selected text. The color attribute is if available the color's name else the HEX value as a string.

See Also