# CellRenderContext Interface

> CellRenderContext interface in the TX Sheet Control TypeScript API for the browser: Platform-independent cell rendering context.

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

---

Platform-independent cell rendering context; dimensions are unscaled CSS pixels and font size is in points.

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/cellrendercontext/address-property/llms-full.txt) | The address value of CellRenderContext. |
| [displayText](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/displaytext-property/llms-full.txt) | The displayText value of CellRenderContext. |
| [height](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/height-property/llms-full.txt) | The height value of CellRenderContext. |
| [initialInput](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/initialinput-property/llms-full.txt) | The initialInput value of CellRenderContext. |
| [options](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/options-property/llms-full.txt) | The options value of CellRenderContext. |
| [sheetId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/sheetid-property/llms-full.txt) | The sheetId value of CellRenderContext. |
| [style](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/style-property/llms-full.txt) | The style value of CellRenderContext. |
| [value](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/value-property/llms-full.txt) | The value value of CellRenderContext. |
| [width](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/width-property/llms-full.txt) | The width value of CellRenderContext. |

### Examples

Pass the CellRenderContext value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

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

function inspectCellRenderContextSheetId(cellRenderContext: CellRenderContext) {
    const value = cellRenderContext['sheetId'];
    console.log('CellRenderContext.sheetId', value);
}
```

### 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

- [CellRenderContext.address Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/address-property/llms-full.txt): CellRenderContext.address property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [CellRenderContext.displayText Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/displaytext-property/llms-full.txt): CellRenderContext.displayText property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [CellRenderContext.height Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/height-property/llms-full.txt): CellRenderContext.height property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.
- [CellRenderContext.initialInput Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/initialinput-property/llms-full.txt): CellRenderContext.initialInput property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [CellRenderContext.options Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/options-property/llms-full.txt): CellRenderContext.options property in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [CellRenderContext.sheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/sheetid-property/llms-full.txt): CellRenderContext.sheetId property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [CellRenderContext.style Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/style-property/llms-full.txt): CellRenderContext.style property in the TX Sheet Control TypeScript API for the browser, with its type CellStyle and a TypeScript example.
- [CellRenderContext.value Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/value-property/llms-full.txt): CellRenderContext.value property in the TX Sheet Control TypeScript API for the browser, with its type CellValue and a TypeScript example.
- [CellRenderContext.width Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/width-property/llms-full.txt): CellRenderContext.width property in the TX Sheet Control TypeScript API for the browser, with its type number and a TypeScript example.

---

## Nearby

- **Previous:** [CellReadOptions.maxCells Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellreadoptions/maxcells-property/llms-full.txt)
- **Next:** [CellRenderContext.address Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cellrendercontext/address-property/llms-full.txt)
