# Javascript: FormattingStyle.setTextBackColor Method

> Sets the style's text background color.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: FormattingStyle.setTextBackColor Method
- **265 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/settextbackcolor-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/settextbackcolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/settextbackcolor-method/llms-full.txt

---

### Description

Sets the style's text background color.

### Syntax

```javascript
<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.

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

---

## Nearby

- **Previous:** [Javascript: FormattingStyle.setStrikeout Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setstrikeout-method/llms-full.txt)
- **Next:** [Javascript: FormattingStyle.setUnderline Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setunderline-method/llms-full.txt)
