TX Text Control .NET for WPF

BarcodeType Property

Property|Introduced in 29.0
Namespace
TXTextControl.WPF.Barcode
Package
TXTextControl.TextControl.WPF.SDK as TXBarcode.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the type of barcode that should be displayed. This is a dependency property.

Syntax

public BarcodeType BarcodeType { get; set; }

Examples

The following example uses TXBarcodeControl.BarcodeType to configure barcode type as part of the txbarcode control workflow. The configured value is checked before the workflow continues.

tXBarcodeControl.BarcodeType = TXTextControl.Barcode.BarcodeType.QRCode;
Console.WriteLine($"Barcode Type used by TXBarcode Control: {tXBarcodeControl.BarcodeType}");

Remarks

On changing this property all control settings are retained, if they are valid for the conditions of the new barcode type. Otherwise the Text and UpperTextLength properties are reset to the default values of the new barcode type.