# NamedCellStyle Interface

> NamedCellStyle interface in the TX Sheet Control TypeScript API for Node.js: 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 > Node.js Server > NamedCellStyle Interface
- **411 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/namedcellstyle/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/namedcellstyle/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/namedcellstyle/llms-full.txt

---

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

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

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Members

#### Properties

| Property | Description |
|---|---|
| [formatting](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/namedcellstyle/formatting-property/llms-full.txt) | The formatting value of NamedCellStyle. |
| [id](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/namedcellstyle/id-property/llms-full.txt) | The id value of NamedCellStyle. |
| [name](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/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 { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

function inspectNamedCellStyleId(
    namedCellStyle: Awaited<ReturnType<ServerSheetControl['workbook']['listNamedStyles']>>[number],
) {
    const value = namedCellStyle['id'];
    console.log('NamedCellStyle.id', value);
}
```

### See Also

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

---

## Nearby

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