# NamedCellStyle Interface

> NamedCellStyle interface in the browser TypeScript API: Detached named style definition including native include/protection/color metadata.

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

---

Detached named style definition including native include/protection/color metadata.

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

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

### Members

#### Properties

| Property | Description |
|---|---|
| [formatting](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedcellstyle/formatting-property/llms-full.txt) | The formatting value of NamedCellStyle. |
| [id](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedcellstyle/id-property/llms-full.txt) | The id value of NamedCellStyle. |
| [name](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedcellstyle/name-property/llms-full.txt) | The name value of NamedCellStyle. |

### Examples

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

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

function inspectNamedCellStyleId(namedCellStyle: NamedCellStyle) {
    const value = namedCellStyle['id'];
    console.log('NamedCellStyle.id', value);
}
```

### See Also

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

---

## In This Section

- [NamedCellStyle.formatting Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedcellstyle/formatting-property/llms-full.txt): NamedCellStyle.formatting property in the TX Sheet Control TypeScript API for the browser, with its type Partial<CellStyle> and a TypeScript example.
- [NamedCellStyle.id Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedcellstyle/id-property/llms-full.txt): NamedCellStyle.id property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [NamedCellStyle.name Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedcellstyle/name-property/llms-full.txt): NamedCellStyle.name property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.

---

## Nearby

- **Previous:** [MutationEvent.sources Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/mutationevent/sources-property/llms-full.txt)
- **Next:** [NamedCellStyle.formatting Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/namedcellstyle/formatting-property/llms-full.txt)
