DS Server

Javascript: FormattingStyle.setStrikeout Method

Method|Introduced in 28.0

Description

Sets the strikeout attribute of the style.

Syntax

<void> FormattingStyle.setStrikeout(<Boolean> strikeout, <EmptyRequestCallback> callback)

Parameters

ParameterDescription
strikeout

The strikeout attribute of the style.

callback

Is called when the operation completed.

Examples

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

function configureStrikeout(formattingStyle) {
    formattingStyle.setStrikeout(
        true,
        function() {
            console.log("set strikeout completed.");
        }
    );
}