TX Text Control .NET Server

Javascript: ParagraphFormat.getTabPositions Method

Method|Introduced in 26.0

Description

Gets the absolute tab stop positions, in twips, in a paragraph.

Syntax

<void> ParagraphFormat.getTabPositions(<RequestNumbersCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the absolute tab stop positions, in twips, in a paragraph.

errorCallback

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

Examples

The following example demonstrates ParagraphFormat.getTabPositions in a practical document-editing workflow. It gets the absolute tab stop positions, in twips, in a paragraph.

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

TXTextControl.paragraphFormat.getTabPositions(
    function(result) {
        console.log("get tab positions result:", result);
    },
    onTxError
);