TX Text Control .NET for WPF

UpperTextLength 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 maximum number of characters the Text property can have. This is a dependency property.

Syntax

public int UpperTextLength { get; set; }

Examples

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}");

Remarks

Throws an ArgumentException, if the value is not valid for the conditions of the current barcode type.