DS Server

Javascript: FormattingStyle.setFontSize Method

Method|Introduced in 28.0

Description

Sets the font's size of the style.

Syntax

<void> FormattingStyle.setFontSize(<Number> fontSize, <EmptyRequestCallback> callback)

Parameters

ParameterDescription
fontSize

The font's size of the style.

callback

Is called when the operation completed.

Examples

The following example demonstrates FormattingStyle.setFontSize in a practical document-editing workflow. It sets the font's size of the style.

function configureFontSize(formattingStyle) {
    formattingStyle.setFontSize(
        1,
        function() {
            console.log("set font size completed.");
        }
    );
}