TX Text Control .NET Server

Javascript: TextViewGeneratorColors.getDesktopColor Method

Method|Introduced in 28.0

Description

Gets the display color for the area around the pages.

Syntax

<void> TextViewGeneratorColors.getDesktopColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the color for the area around the pages.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates TextViewGeneratorColors.getDesktopColor in a practical document-editing workflow. It gets the display color for the area around the pages.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.displayColors.getDesktopColor(
    function(result) {
        console.log("get desktop color result:", result);
    },
    onTxError
);