TX Text Control .NET Server

Javascript: ListFormat.getLeftIndent Method

Method|Introduced in 28.0

Description

Gets the left indent for a numbered list.

Syntax

<void> ListFormat.getLeftIndent(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the left indent for a numbered list.

errorCallback

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

Examples

The following example demonstrates ListFormat.getLeftIndent in a practical document-editing workflow. It gets the left indent for a numbered list.

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

TXTextControl.listFormat.getLeftIndent(
    function(result) {
        console.log("get left indent result:", result);
    },
    onTxError
);