DS Server

Javascript: FormattingStyle.getBaseStyle Method

Method|Introduced in 28.0

Description

Gets the FormattingStyle which is the base style of this style.

Syntax

<void> FormattingStyle.getBaseStyle(<RequestFormattingStyleCallback> callback)

Parameters

ParameterDescription
callback

Receives the FormattingStyle which is the base style of this style.

Examples

The following example demonstrates FormattingStyle.getBaseStyle in a practical document-editing workflow. It gets the FormattingStyle which is the base style of this style.

function inspectBaseStyle(formattingStyle) {
    formattingStyle.getBaseStyle(
        function(style) {
            if (!style) {
                console.warn("No formatting style was returned.");
                return;
            }
            
            console.log("get base style result:", style);
        }
    );
}