DS Server

Javascript: ParagraphFormat.getAbsoluteLineSpacing Method

Method|Introduced in 26.0

Description

Gets the line spacing of a paragraph in twips.

Syntax

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

Parameters

ParameterDescription
callback

Receives the line spacing of a paragraph in twips.

errorCallback

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

Examples

The following example demonstrates ParagraphFormat.getAbsoluteLineSpacing in a practical document-editing workflow. It gets the line spacing of a paragraph in twips.

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

TXTextControl.paragraphFormat.getAbsoluteLineSpacing(
    function(result) {
        console.log("get absolute line spacing result:", result);
    },
    onTxError
);