TX Text Control .NET Server

Javascript: FormattingStyle.getStrikeout Method

Method|Introduced in 28.0

Description

Gets the strikeout attribute of the style.

Syntax

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

Parameters

ParameterDescription
callback

Receives the strikeout attribute of the style.

Examples

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

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