DS Server

Javascript: TXTextControl.getBackColor Method

Method|Introduced in 28.0

Description

Gets the Text Control's background color.

Syntax

<void> TXTextControl.getBackColor(<RequestColorStringCallback> callback)

Parameters

ParameterDescription
callback

Receives the background color.

Examples

The following example demonstrates TXTextControl.getBackColor in a practical document-editing workflow. It gets the Text Control's background color.

TXTextControl.getBackColor(
    function(color) {
        console.log("get back color result:", color);
    }
);