TX Text Control .NET for Windows Forms

GetMaximumTextLength Method

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

Description

Returns the maximum text length of the specified barcode type.

Syntax

public static int GetMaximumTextLength(BarcodeType barcodeType);

Parameters

ParameterDescription
barcodeType

Specifies the barcode type whose maximum text length is returned.

Return Value

The maximum text length for the specified barcode type.

Examples

The following example retrieves maximum text length from the txbarcode control.

var result = TXTextControl.Barcode.TXBarcodeControl.GetMaximumTextLength(TXTextControl.Barcode.BarcodeType.QRCode);
Console.WriteLine($"Get Maximum Text Length result: {result}");