TX Text Control .NET Server

Javascript: ParagraphFormat.getRightIndent Method

Method|Introduced in 26.0

Description

Gets the distance, in twips, between the right edge of a Text Control document and the right edge of the text.

Syntax

<void> ParagraphFormat.getRightIndent(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the distance, in twips, between the right edge of a Text Control document and the right edge of the text.

errorCallback

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

Examples

The following example demonstrates ParagraphFormat.getRightIndent in a practical document-editing workflow. It gets the distance, in twips, between the right edge of a Text Control document and the right edge of the text.

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

TXTextControl.paragraphFormat.getRightIndent(
    function(result) {
        console.log("get right indent result:", result);
    },
    onTxError
);