# Javascript: TableCellFormat.getBackColor Method

> Gets the table cell's background color.

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

---

### Description

Gets the table cell's background color.

### Syntax

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

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the cell's background color. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TableCellFormat.getBackColor` in a practical document-editing workflow. It gets the table cell's background color.

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

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

---

## Nearby

- **Previous:** [Javascript: TableCellFormat.bottomBorder Property](https://docs.textcontrol.com/ds-server/reference/javascript/tablecellformat/bottomborder-property/llms-full.txt)
- **Next:** [Javascript: TableCellFormat.getNumberFormat Method](https://docs.textcontrol.com/ds-server/reference/javascript/tablecellformat/getnumberformat-method/llms-full.txt)
