BarcodeType Property
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. Core. SDK TXBarcode.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTextControl. ASP. SDK TXBarcode.dll
Description
Gets or sets the type of barcode that is rendered.
Syntax
public BarcodeType BarcodeType { get; set; }Public Property BarcodeType As BarcodeTypeExamples
The following example uses TXBarcodeCore.BarcodeType to configure barcode type as part of the txbarcode core workflow. The configured value is checked before the workflow continues.
tXBarcodeCore.BarcodeType = TXTextControl.Barcode.BarcodeType.QRCode;
Console.WriteLine($"Barcode Type used by TXBarcode Core: {tXBarcodeCore.BarcodeType}");tXBarcodeCore.BarcodeType = TXTextControl.Barcode.BarcodeType.QRCode
Console.WriteLine($"Barcode Type used by TXBarcode Core: {tXBarcodeCore.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.