UpperTextLength Property
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. WinForms. SDK TXBarcode.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the maximum number of characters the Text property can get.
Syntax
public int UpperTextLength { get; set; }Public Property UpperTextLength As IntegerExamples
The following example uses TXBarcodeCore.UpperTextLength to configure upper text length as part of the txbarcode core workflow. The configured value is checked before the workflow continues.
tXBarcodeCore.UpperTextLength = 1;
Console.WriteLine($"Upper Text Length used by TXBarcode Core: {tXBarcodeCore.UpperTextLength}");tXBarcodeCore.UpperTextLength = 1
Console.WriteLine($"Upper Text Length used by TXBarcode Core: {tXBarcodeCore.UpperTextLength}")Remarks
Throws an ArgumentException, if the value is not valid for the conditions of the current barcode type.