# CellData Interface

> CellData interface in the browser TypeScript API: A detached cell read containing raw input, typed value, display text and optional resolved style.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > CellData Interface
- **646 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/llms-full.txt

---

A detached cell read containing raw input, typed value, display text and optional resolved style.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [address](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/address-property/llms-full.txt) | The address value of CellData. |
| [displayText](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/displaytext-property/llms-full.txt) | The displayText value of CellData. |
| [style](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/style-property/llms-full.txt) | The style value of CellData. |
| [text](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/text-property/llms-full.txt) | The text value of CellData. |
| [value](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/value-property/llms-full.txt) | The value value of CellData. |

### Examples

Create sample data and obtain this detached result from the owning document. Return the selected data to the report or application UI.

```typescript
import type { Workbook } from '@txtextcontrol/tx-sheet-control';

function createCellDataReport(book: Workbook) {
    const sheet = book.sheets.at(0);
    sheet.cell('A1').setText('October invoice');
    sheet
        .cell('A1')
        .format({
            fontFamily: 'Liberation Sans',
            fontSize: 16,
            bold: true,
            textColor: '#ffffff',
            fillColor: '#163b63',
        });

    sheet.columns.at(0).setWidth({ pixels: 240 });
    sheet.range('B8:B9').setValues([[120], [80]]);
    sheet.cell('B10').setFormula('=SUM(B8:B9)');
    sheet.range('B8:B10').format({ numberFormatCode: '#,##0.00', fontSize: 11 });

    const result = sheet.range('B8:B10').read()[0];
    return result;
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [CellData.address Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/address-property/llms-full.txt): CellData.address property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [CellData.displayText Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/displaytext-property/llms-full.txt): CellData.displayText property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [CellData.style Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/style-property/llms-full.txt): CellData.style property in the TX Sheet Control TypeScript API for the browser, with its type CellStyle | undefined and a TypeScript example.
- [CellData.text Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/text-property/llms-full.txt): CellData.text property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [CellData.value Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/value-property/llms-full.txt): CellData.value property in the TX Sheet Control TypeScript API for the browser, with its type CellValue and a TypeScript example.

---

## Nearby

- **Previous:** [CellComments.thread Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellcomments/thread-property/llms-full.txt)
- **Next:** [CellData.address Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/celldata/address-property/llms-full.txt)
