DS Server

Javascript: FormattingStyle.setTextBackColor Method

Method|Introduced in 28.0

Description

Sets the style's text background color.

Syntax

<void> FormattingStyle.setTextBackColor(<String> color, <EmptyRequestCallback> callback)

Parameters

ParameterDescription
color

The style's text background color.

callback

Is called when the operation completed.

Examples

The following example demonstrates FormattingStyle.setTextBackColor in a practical document-editing workflow. It sets the style's text background color.

function configureTextBackColor(formattingStyle) {
    formattingStyle.setTextBackColor(
        "#ffd54f",
        function() {
            console.log("set text back color completed.");
        }
    );
}