# RequestCellFormatCallback Function

> Callback function for requests expecting a TableCellFormat value.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Function
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > RequestCellFormatCallback Function
- **275 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestcellformatcallback/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestcellformatcallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestcellformatcallback/llms-full.txt

---

### Description

Callback function for requests expecting a [TableCellFormat](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tablecellformat/llms-full.txt) value.

### Syntax

```javascript
function(<TableCellFormat> format)
```

### Examples

The following example demonstrates `RequestCellFormatCallback` in a practical document-editing workflow. Callback function for requests expecting a TableCellFormat value.

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

function requestCellFormatCallback(format) {
    console.log("format:", format);
}

function useRequestCellFormatCallback(tableCell) {
    tableCell.getCellFormat(requestCellFormatCallback, onTxError);
}
```

---

## Nearby

- **Previous:** [RequestCapitalsCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestcapitalscallback/llms-full.txt)
- **Next:** [RequestChangeKindCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestchangekindcallback/llms-full.txt)
