TX Text Control .NET for WPF

GetMinimumTextLength Method

Method|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

Returns the minimum text length the specified barcode type can have.

Syntax

public static int GetMinimumTextLength(BarcodeType barcodeType);

Parameters

ParameterDescription
barcodeType

Specifies the barcode type for which the minimum text length is returned.

Return Value

The minimum text length for the specified barcode type.

Examples

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

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