TX Text Control .NET Server

Javascript: TextViewGeneratorColors.getHeaderFooterLabelColor Method

Method|Introduced in 28.0

Description

Gets the display color for the label showing which header or footer is activated.

Syntax

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

Parameters

ParameterDescription
callback

Receives the color for the label showing which header or footer is activated.

errorCallback

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

Examples

The following example demonstrates TextViewGeneratorColors.getHeaderFooterLabelColor in a practical document-editing workflow. It gets the display color for the label showing which header or footer is activated.

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

TXTextControl.displayColors.getHeaderFooterLabelColor(
    function(result) {
        console.log("get header footer label color result:", result);
    },
    onTxError
);