TX Text Control .NET Server

Javascript: ParagraphFormat.getBackColor Method

Method|Introduced in 26.0

Description

Gets the background color of a paragraph.

Syntax

<void> ParagraphFormat.getBackColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the background color of a paragraph.

errorCallback

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

Examples

The following example demonstrates ParagraphFormat.getBackColor in a practical document-editing workflow. It gets the background color of a paragraph.

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

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