# TXBarcodeCore.UpperTextLength Property

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

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.Barcode`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXBarcode.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXBarcode.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.Barcode > TXBarcodeCore.UpperTextLength Property
- **377 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/uppertextlength-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/uppertextlength-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/uppertextlength-property/llms-full.txt

---

### Description

Gets or sets the maximum number of characters the [Text](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/text-property/llms-full.txt) property can get.

### Syntax

```csharp
public int UpperTextLength { get; set; }
```

```vbnet
Public Property UpperTextLength As Integer
```

### 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.

```csharp
tXBarcodeCore.UpperTextLength = 1;
Console.WriteLine($"Upper Text Length used by TXBarcode Core: {tXBarcodeCore.UpperTextLength}");
```

```vbnet
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](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/barcodetype-property/llms-full.txt).

---

## Nearby

- **Previous:** [TXBarcodeCore.TextAlignment Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/textalignment-property/llms-full.txt)
- **Next:** [TXBarcodeCore.ViewChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/viewchanged-event/llms-full.txt)
