TX Text Control .NET Server

Javascript: PageMargins.getRight Method

Method|Introduced in 26.0

Description

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

Syntax

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

Parameters

ParameterDescription
callback

Receives the right 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.getRight in a practical document-editing workflow. It gets the right 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.getRight(
    function(result) {
        console.log("get right result:", result);
    },
    onTxError
);