# CellPicture.barcode Property

> CellPicture.barcode property in the TX Sheet Control TypeScript API for Node.js: Live barcode settings whose sources resolve after recalculation and mail merge.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > CellPicture > CellPicture.barcode Property
- **367 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellpicture/barcode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellpicture/barcode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellpicture/barcode-property/llms-full.txt

---

Portable live barcode settings. Source references are resolved after recalculation and mail merge; use the owning cell or drawing barcode operations to persist edits.

### Syntax

```typescript
barcode?: BarcodeOptions | undefined
```

### Examples

Apply these settings to a workbook owned by an initialized editor or server control.

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

function createLabel(book: Workbook) {
    const sheet = book.sheets.at(0);
    sheet.cell('A1').setText('001042');
    sheet.cell('B2').setBarcode({ symbology: 'code128', source: 'A1' });
    const drawing = sheet.drawings.addBarcode({ symbology: 'qrCode', source: 'A1', anchor: { cell: 'D2' }, size: { width: 160, height: 160 } });
    drawing.updateBarcode({ symbology: 'qrCode', source: 'A1', errorCorrection: 'H' });
}
```

### See Also

- [CellPicture](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellpicture/llms-full.txt)

---

## Nearby

- **Previous:** [CellPicture.name Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellpicture/name-property/llms-full.txt)
- **Next:** [CellRange Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/cellrange/llms-full.txt)
