# TextFrame.Barcodes Property

> Gets a collection of all barcodes contained in a text frame. 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 text frame.

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

---

### Description

Gets a collection of all barcodes contained in a text frame. 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 text frame.

### Syntax

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

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

### Examples

The following example applies bold formatting through the text frame's selection by using `TextFrame.Barcodes`.

```csharp
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;

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

```vbnet
Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [TextFrame.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframe/backcolor-property/llms-full.txt)
- **Next:** [TextFrame.BorderColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textframe/bordercolor-property/llms-full.txt)
