TX Text Control .NET Server

Javascript: TextFrame.getBorderColor Method

Method|Introduced in 30.0

Description

Gets the border color of the text frame.

Syntax

<void> TextFrame.getBorderColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the color as a CSS color string.

errorCallback

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

Examples

The following example demonstrates TextFrame.getBorderColor in a practical document-editing workflow. It gets the border color of the text frame.

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

function inspectBorderColor(textFrame) {
    textFrame.getBorderColor(
        function(result) {
            console.log("get border color result:", result);
        },
        onTxError
    );
}