# TXBarcodeControl.GetMinimumTextLength Method

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

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.WPF.Barcode`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXBarcode.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXBarcode.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF.Barcode > TXBarcodeControl.GetMinimumTextLength Method
- **506 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-barcode/txbarcodecontrol/getminimumtextlength-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-barcode/txbarcodecontrol/getminimumtextlength-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-barcode/txbarcodecontrol/getminimumtextlength-method/llms-full.txt

---

### Description

Returns the minimum text length the specified [barcode type](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/barcodetype/enumeration/llms-full.txt) can have.

### Syntax

```csharp
public static int GetMinimumTextLength(BarcodeType barcodeType);
```

```vbnet
Public Shared Function GetMinimumTextLength(barcodeType As BarcodeType) As Integer
```

### Parameters

| Parameter | Description |
|---|---|
| barcodeType | Specifies the [barcode type](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/barcodetype/enumeration/llms-full.txt) for which the minimum text length is returned. |

### Return Value

The minimum text length for the specified [barcode type](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/barcodetype/enumeration/llms-full.txt).

### Examples

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

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

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

---

## Nearby

- **Previous:** [TXBarcodeControl.GetMaximumTextLength Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-barcode/txbarcodecontrol/getmaximumtextlength-method/llms-full.txt)
- **Next:** [TXBarcodeControl.IsTextValid Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf-barcode/txbarcodecontrol/istextvalid-method/llms-full.txt)
