TX Text Control .NET Server

Javascript: PageBorder.getTopLineWidth Method

Method|Introduced in 26.0

Description

Gets the width of the top border line.

Syntax

<void> PageBorder.getTopLineWidth(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the width of the top border line.

errorCallback

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

Examples

The following example demonstrates PageBorder.getTopLineWidth in a practical document-editing workflow. It gets the width of the top border line.

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

function inspectTopLineWidth(pageBorder) {
    pageBorder.getTopLineWidth(
        function(result) {
            console.log("get top line width result:", result);
        },
        onTxError
    );
}