TX Text Control .NET Server

Javascript: FormattingStyle.setBold Method

Method|Introduced in 28.0

Description

Sets the bold attribute of the style.

Syntax

<void> FormattingStyle.setBold(<Boolean> isBold, <EmptyRequestCallback> callback)

Parameters

ParameterDescription
isBold

The bold attribute of the style.

callback

Is called when the operation completed.

Examples

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

function configureBold(formattingStyle) {
    formattingStyle.setBold(
        true,
        function() {
            console.log("set bold completed.");
        }
    );
}