# Javascript: TXTextControl.barcodes Property

> Gets a collection of all barcode frames contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property value is an object of the type BarcodeCollection.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.barcodes Property
- **279 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/barcodes-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/barcodes-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/barcodes-property/llms-full.txt

---

### Description

Gets a collection of all barcode frames contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property value is an object of the type [BarcodeCollection](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/barcodecollection/llms-full.txt).

### Syntax

```javascript
<BarcodeCollection> TXTextControl.barcodes
```

### Examples

The following example demonstrates `TXTextControl.barcodes` in a practical document-editing workflow. It gets a collection of all barcode frames contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property value is an object of the type BarcodeCollection.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

tXTextControl.barcodes.getCount(function(count) {
    console.log("barcodes count:", count);
}, onTxError);
```

### Limitations

Read Only.

---

## Nearby

- **Previous:** [Javascript: TXTextControl.BarcodeAlignment Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/barcodealignment-enumeration/llms-full.txt)
- **Next:** [Javascript: TXTextControl.BarcodeTextAlignment Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol/barcodetextalignment-enumeration/llms-full.txt)
