DS Server

Javascript: FormattingStyle.getBaseline Method

Method|Introduced in 28.0

Description

Gets the baseline alignment, in twips, of the style.

Syntax

<void> FormattingStyle.getBaseline(<RequestNumberCallback> callback)

Parameters

ParameterDescription
callback

Receives the baseline alignment, in twips

Examples

The following example demonstrates FormattingStyle.getBaseline in a practical document-editing workflow. It gets the baseline alignment, in twips, of the style.

function inspectBaseline(formattingStyle) {
    formattingStyle.getBaseline(
        function(result) {
            console.log("get baseline result:", result);
        }
    );
}