# TextAlignment Enumeration

> Determines the alignment of the barcode text and additional text that is displayed inside the control. The enumeration contains the following values:

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Enumeration
- **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 > TextAlignment Enumeration
- **424 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/textalignment/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/textalignment/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/textalignment/enumeration/llms-full.txt

---

### Description

Determines the alignment of the barcode text and additional text that is displayed inside the control. The enumeration contains the following values:

### Syntax

```csharp
public enum TextAlignment
```

```vbnet
Public Enum TextAlignment
```

### Members

| Member | Value | Description |
|---|---|---|
| Bottom | 1 | The text is displayed below the barcode image. |
| Top | 2 | The text is displayed above the barcode image. |

### Examples

The following example selects the Bottom value from the Text Alignment enumeration and uses it as a documented workflow choice.

```csharp
TXTextControl.Barcode.TextAlignment value = TXTextControl.Barcode.TextAlignment.Bottom;
Console.WriteLine($"Using Text Alignment: {value}");
```

```vbnet
Dim value As TXTextControl.Barcode.TextAlignment = TXTextControl.Barcode.TextAlignment.Bottom
Console.WriteLine($"Using Text Alignment: {value}")
```

---

## Nearby

- **Previous:** [BarcodeTypeSettings.ShowCheckValue Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/barcodetypesettings/showcheckvalue-property/llms-full.txt)
- **Next:** [TXBarcodeCore Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/llms-full.txt)
