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