GetMaximumTextLength Method
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. Core. SDK TXBarcode.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTextControl. ASP. SDK TXBarcode.dll
Description
Returns the maximum text length of the specified barcode type.
Syntax
public static int GetMaximumTextLength(BarcodeType barcodeType);Public Shared Function GetMaximumTextLength(barcodeType As BarcodeType) As IntegerParameters
| Parameter | Description |
|---|---|
| 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 core.
var result = TXTextControl.Barcode.TXBarcodeCore.GetMaximumTextLength(TXTextControl.Barcode.BarcodeType.QRCode);
Console.WriteLine($"Get Maximum Text Length result: {result}");Dim result = TXTextControl.Barcode.TXBarcodeCore.GetMaximumTextLength(TXTextControl.Barcode.BarcodeType.QRCode)
Console.WriteLine($"Get Maximum Text Length result: {result}")