TX Text Control .NET Server

Javascript: FootnoteCollection.getDefaultFootnoteHighlightColor Method

Method|Introduced in 32.0

Description

Gets the default highlight color for the reference mark and the footnote mark.

Syntax

<void> FootnoteCollection.getDefaultFootnoteHighlightColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the requested property value.

errorCallback

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

Examples

The following example demonstrates FootnoteCollection.getDefaultFootnoteHighlightColor in a practical document-editing workflow. It gets the default highlight color for the reference mark and the footnote mark.

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

TXTextControl.footnotes.getDefaultFootnoteHighlightColor(
    function(result) {
        console.log("get default footnote highlight color result:", result);
    },
    onTxError
);