TX Text Control .NET Server

Javascript: FormattingStyle.setBaseline Method

Method|Introduced in 28.0

Description

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

Syntax

<void> FormattingStyle.setBaseline(<Number> baseline, <EmptyRequestCallback> callback)

Parameters

ParameterDescription
baseline

The baseline alignment, in twips.

callback

Is called when the operation completed.

Examples

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

function configureBaseline(formattingStyle) {
    formattingStyle.setBaseline(
        1,
        function() {
            console.log("set baseline completed.");
        }
    );
}