TX Text Control .NET Server

Javascript: InputFormat.getBottomDistance Method

Method|Introduced in 28.0

Description

Gets bottom's paragraph distance, in twips, at the current input position.

Syntax

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

Parameters

ParameterDescription
callback

Receives bottom's paragraph distance, in twips, at the current input position.

errorCallback

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

Examples

The following example demonstrates InputFormat.getBottomDistance in a practical document-editing workflow. It gets bottom's paragraph distance, in twips, at the current input position.

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

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