Barcodes Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
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.
Syntax
public BarcodeCollection Barcodes { get; }Public ReadOnly Property Barcodes As BarcodeCollectionExamples
The following example applies bold formatting through the text frame's selection by using TextFrame.Barcodes.
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;
foreach (TXTextControl.DataVisualization.BarcodeFrame barcodeFrame in textFrame.Barcodes)
{
barcodeFrame.DescriptiveText = "Quarterly results";
}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"
NextLimitations
Read only.