Javascript: FormattingStyle.setTextBackColor Method
Description
Sets the style's text background color.
Syntax
<void> FormattingStyle.setTextBackColor(<String> color, <EmptyRequestCallback> callback)Parameters
| Parameter | Description |
|---|---|
| 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.");
}
);
}