TX Text Control .NET Server

Javascript: PageMargins.getBottom Method

Method|Introduced in 26.0

Description

Gets the bottom margin of a TX Text Control document or document section.

Syntax

<void> PageMargins.getBottom(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the bottom margin of a TX Text Control document or document section.

errorCallback

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

Examples

The following example demonstrates PageMargins.getBottom in a practical document-editing workflow. It gets the bottom margin of a TX Text Control document or document section.

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

TXTextControl.pageMargins.getBottom(
    function(result) {
        console.log("get bottom result:", result);
    },
    onTxError
);