# TextControl.Barcodes Property

> Gets a collection of all barcodes 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 DataVisualization.BarcodeCollection. The collection can be used to get or to alter a barcode's attributes and to add barcodes to or to remove barcodes from a document.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 19.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > TextControl.Barcodes Property
- **421 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcodes-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcodes-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcodes-property/llms-full.txt

---

### Description

Gets a collection of all barcodes 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 [DataVisualization.BarcodeCollection](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-datavisualization/barcodecollection/llms-full.txt). The collection can be used to get or to alter a barcode's attributes and to add barcodes to or to remove barcodes from a document.

### Syntax

```csharp
public BarcodeCollection Barcodes { get; }
```

```vbnet
Public ReadOnly Property Barcodes As BarcodeCollection
```

### Examples

The following example iterates through the barcodes collection and processes each barcode frame.

```csharp
foreach (TXTextControl.DataVisualization.BarcodeFrame barcodeFrame in textControl.Barcodes)
{
    barcodeFrame.DescriptiveText = "Quarterly results";
}
```

```vbnet
For Each barcodeFrame As TXTextControl.DataVisualization.BarcodeFrame In textControl.Barcodes
    barcodeFrame.DescriptiveText = "Quarterly results"
Next
```

### Limitations

Runtime only.

Read only.

---

## Nearby

- **Previous:** [TextControl.BarcodeRightClicked Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcoderightclicked-event/llms-full.txt)
- **Next:** [TextControl.BarcodeSelected Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/barcodeselected-event/llms-full.txt)
