TX Text Control .NET for Windows Forms

UpperTextLength Property

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

Description

Gets or sets the maximum number of characters the Text property can get.

Syntax

public int UpperTextLength { get; set; }

Examples

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

Remarks

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