# Cell.barcode Property

> Cell.barcode property in the TX Sheet Control TypeScript API for the browser: Reads the cell barcode settings, or undefined for a cell without a barcode.

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

---

Reads the cell barcode settings, or undefined for a cell without a barcode.

Package: `@txtextcontrol/tx-sheet-control`.

### Syntax

```typescript
readonly barcode: BarcodeOptions | undefined
```

### Example

Use an existing workbook as `book`.

```typescript
import { Workbook as ExampleWorkbook } from '@txtextcontrol/tx-sheet-control';
const book = new ExampleWorkbook();

const sheet = book.sheets.at(0);
sheet.cell('A2').setText('000123');
sheet.cell('A2').setBarcode({ symbology: 'code128' });
```

### Remarks

Settings are detached snapshots. Cell values and formulas remain available beneath the symbol. Sources resolve after calculation and mail merge. See [Barcodes and QR Codes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/barcodes/llms-full.txt) for validation, supported payloads and XLSX behavior.

---

## Nearby

- **Previous:** [Cell.values Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cell/values-property/llms-full.txt)
- **Next:** [Cell.setBarcode Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/cell/setbarcode-method/llms-full.txt)
