DS Server

Javascript: FormattingStyle.getFontSize Method

Method|Introduced in 28.0

Description

Gets the font's size of the style.

Syntax

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

Parameters

ParameterDescription
callback

Receives the font's size of the style.

Examples

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

function inspectFontSize(formattingStyle) {
    formattingStyle.getFontSize(
        function(result) {
            console.log("get font size result:", result);
        }
    );
}