TX Text Control .NET Server

Javascript: TableCellBorder.getColor Method

Method|Introduced in 28.0

Description

Gets the cell's border color.

Syntax

<void> TableCellBorder.getColor(<RequestColorStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the cell's border color.

errorCallback

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

Examples

The following example demonstrates TableCellBorder.getColor in a practical document-editing workflow. It gets the cell's border color.

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

function inspectColor(tableCellBorder) {
    tableCellBorder.getColor(
        function(color) {
            console.log("get color result:", color);
        },
        onTxError
    );
}