DS Server

Javascript: PageBorder.getBottomLineWidth Method

Method|Introduced in 26.0

Description

Gets the width of the bottom border line.

Syntax

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

Parameters

ParameterDescription
callback

the width of the bottom border line.

errorCallback

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

Examples

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

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

function inspectBottomLineWidth(pageBorder) {
    pageBorder.getBottomLineWidth(
        function(result) {
            console.log("get bottom line width result:", result);
        },
        onTxError
    );
}