TX Text Control .NET Server

Javascript: TextViewGeneratorColors.setHeaderFooterLineColor Method

Method|Introduced in 28.0

Description

Sets the display color for the dividing line between headers and footers and the main text.

Syntax

<void> TextViewGeneratorColors.setHeaderFooterLineColor(<string> color, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
color

The display color for the dividing line between headers and footers and the main text.

callback

Optional. Is called when the operation completed.

errorCallback

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

Examples

The following example demonstrates TextViewGeneratorColors.setHeaderFooterLineColor in a practical document-editing workflow. It sets the display color for the dividing line between headers and footers and the main text.

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

TXTextControl.displayColors.setHeaderFooterLineColor(
    "#ffd54f",
    function() {
        console.log("set header footer line color completed.");
    },
    onTxError
);