TX Text Control .NET Server

Javascript: PageMargins.getLeft Method

Method|Introduced in 26.0

Description

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

Syntax

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

Parameters

ParameterDescription
callback

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