# TableColumnDefinition.id Property

> TableColumnDefinition.id property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > TableColumnDefinition > TableColumnDefinition.id Property
- **541 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tablecolumndefinition/id-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tablecolumndefinition/id-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tablecolumndefinition/id-property/llms-full.txt

---

The id value of TableColumnDefinition.

Owner: [TableColumnDefinition](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tablecolumndefinition/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```typescript
id: string
```

Read through the owning object: `owner.id`. Follow the declared mutability and owning object lifetime.

### 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 createTableColumnDefinitionId(book: Workbook) {
    const sheet = book.sheets.at(0);
    sheet.range('A7:D9').setValues([
        ['Description', 'Quantity', 'UnitPrice', 'Amount'],
        ['Consulting', 3, 120, 360],
        ['Training', 2, 90, 180],
    ]);

    const table = sheet.tables.add('InvoiceLines', 'A7:D9', {
        style: 'TableStyleMedium2',
        hasHeaderRow: true,
        showRowStripes: true,
    });

    const result = table.snapshot.columns[3];
    return result.id;
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [TableColumnDefinition Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tablecolumndefinition/llms-full.txt)
- [Tables](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/tables/llms-full.txt)

---

## Nearby

- **Previous:** [TableColumnDefinition.formula Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tablecolumndefinition/formula-property/llms-full.txt)
- **Next:** [TableColumnDefinition.name Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/tablecolumndefinition/name-property/llms-full.txt)
