TX Text Control .NET Server

Javascript: PageBorder.getBottomDistance Method

Method|Introduced in 26.0

Description

Gets the distance, in twips, of the bottom border line either from the edge of the page or from the text, depending on the MeasureFromText.

Syntax

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

Parameters

ParameterDescription
callback

Receives the distance, in twips, of the bottom border line either from the edge of the page or from the text.

errorCallback

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

Examples

The following example demonstrates PageBorder.getBottomDistance in a practical document-editing workflow. It gets the distance, in twips, of the bottom border line either from the edge of the page or from the text, depending on the MeasureFromText.

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

function inspectBottomDistance(pageBorder) {
    pageBorder.getBottomDistance(
        function(result) {
            console.log("get bottom distance result:", result);
        },
        onTxError
    );
}