# Javascript: ParagraphFormat.getBackColor Method

> Gets the background color of a paragraph.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 26.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: ParagraphFormat.getBackColor Method
- **296 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/getbackcolor-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/getbackcolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/getbackcolor-method/llms-full.txt

---

### Description

Gets the background color of a paragraph.

### Syntax

```javascript
<void> ParagraphFormat.getBackColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the background color of a paragraph. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `ParagraphFormat.getBackColor` in a practical document-editing workflow. It gets the background color of a paragraph.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.paragraphFormat.getBackColor(
    function(result) {
        console.log("get back color result:", result);
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: ParagraphFormat.getAlignment Method](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/getalignment-method/llms-full.txt)
- **Next:** [Javascript: ParagraphFormat.getBottomDistance Method](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/getbottomdistance-method/llms-full.txt)
