DS Server

Javascript: FormattingStyle.getItalic Method

Method|Introduced in 28.0

Description

Gets the italic attribute of the style.

Syntax

<void> FormattingStyle.getItalic(<RequestBooleanCallback> callback)

Parameters

ParameterDescription
callback

Receives the italic attribute of the style.

Examples

The following example demonstrates FormattingStyle.getItalic in a practical document-editing workflow. It gets the italic attribute of the style.

function inspectItalic(formattingStyle) {
    formattingStyle.getItalic(
        function(result) {
            if (result) {
                console.log("get italic is available.");
            } else {
                console.warn("get italic is not available in the current document state.");
            }
        }
    );
}