# BarcodeOptions.showText Property

> BarcodeOptions.showText property in the TX Sheet Control TypeScript API for the browser, with its type boolean and a TypeScript example.

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

---

Human-readable caption for linear codes; defaults to true. QR codes always omit the caption.

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

### Syntax

```typescript
showText?: boolean
```

### 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 { Workbook } from '@txtextcontrol/tx-sheet-control';
import type { BarcodeOptions } from '@txtextcontrol/tx-sheet-control';

const book = new 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.value Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/barcodeoptions/value-property/llms-full.txt)
- **Next:** [BarcodeOptions.foreground Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/barcodeoptions/foreground-property/llms-full.txt)
