TX Text Control .NET Server

Javascript: FormattingStyle.setName Method

Method|Introduced in 28.0

Description

Sets the name of the style.

Syntax

<void> FormattingStyle.setName(<String> name, <EmptyRequestCallback> callback)

Parameters

ParameterDescription
name

The name of the style.

callback

Is called when the operation completed.

Examples

The following example demonstrates FormattingStyle.setName in a practical document-editing workflow. It sets the name of the style.

function configureName(formattingStyle) {
    formattingStyle.setName(
        "Invoice Heading",
        function() {
            console.log("set name completed.");
        }
    );
}