# Javascript: TableRow.getCellFormat Method

> Gets the formatting attributes of a table row.

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

---

### Description

Gets the formatting attributes of a table row.

### Syntax

```javascript
<void> TableRow.getCellFormat(<RequestCellFormatCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the row's formatting attributes. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TableRow.getCellFormat` in a practical document-editing workflow. It gets the formatting attributes of a table row.

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

function inspectCellFormat(tableRow) {
    tableRow.getCellFormat(
        function(format) {
            if (!format) {
                console.warn("No table cell format was returned.");
                return;
            }
            
            console.log("get cell format result:", format);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TableRow.getAllowPageBreak Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablerow/getallowpagebreak-method/llms-full.txt)
- **Next:** [Javascript: TableRow.getIsHeader Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablerow/getisheader-method/llms-full.txt)
