# BarcodeOptions.value Property

> BarcodeOptions.value property in the TX Sheet Control TypeScript API for Node.js, with its type string and a TypeScript example.

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

---

Literal payload, mutually exclusive with source. Maximum 8192 characters. Omit both to read the owning or anchor cell.

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

### Syntax

```typescript
value?: string
```

### 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.

### Examples

Create a barcode from application data and retain its editable workbook settings.

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

const control = new ServerSheetControl();
const book = control.workbook;
const sheet = book.sheets.at(0);
sheet.cell('A1').setText('https://example.com/invoice/1042');
const options: BarcodeOptions = {
    symbology: 'qrCode', source: 'A1', showText: false,
    foreground: '#163b63', background: '#ffffff', errorCorrection: 'M', version: 3,
};
sheet.cell('B2').setBarcode(options);
sheet.cell('D2').setBarcode({ symbology: 'code128', value: '001042', showText: true });
```

---

## Nearby

- **Previous:** [BarcodeOptions.source Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/barcodeoptions/source-property/llms-full.txt)
- **Next:** [BarcodeOptions.showText Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/barcodeoptions/showtext-property/llms-full.txt)
