TX Text Control .NET Server

Javascript: FormattingStyle.getBold Method

Method|Introduced in 28.0

Description

Gets the bold attribute of the style.

Syntax

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

Parameters

ParameterDescription
callback

Receives the bold attribute of the style.

Examples

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

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