TX Text Control .NET Server

Javascript: FormattingStyle.setItalic Method

Method|Introduced in 28.0

Description

Sets the italic attribute of the style.

Syntax

<void> FormattingStyle.setItalic(<Boolean> isItalic, <EmptyRequestCallback> callback)

Parameters

ParameterDescription
isItalic

The italic attribute of the style.

callback

Is called when the operation completed.

Examples

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

function configureItalic(formattingStyle) {
    formattingStyle.setItalic(
        true,
        function() {
            console.log("set italic completed.");
        }
    );
}