# IFormattedText.Barcodes Property

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > IFormattedText.Barcodes Property
- **512 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/iformattedtext/barcodes-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/iformattedtext/barcodes-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/iformattedtext/barcodes-property/llms-full.txt

---

### Description

Gets a collection of all barcodes in the text part. The property value is an object of the type [DataVisualization.BarcodeCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/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.

### Syntax

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

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

### Examples

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

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

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

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

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

### Limitations

Read only.

---

## Nearby

- **Previous:** [IFormattedText.ApplicationFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/iformattedtext/applicationfields-property/llms-full.txt)
- **Next:** [IFormattedText.Comments Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/iformattedtext/comments-property/llms-full.txt)
