# TXBarcodeControl.TextAlignment Property

> Gets or sets a value indicating whether the barcode text and additional text is displayed below or above the barcode image. The default value is Bottom.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.Barcode`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXBarcode.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXBarcode.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Barcode > TXBarcodeControl.TextAlignment Property
- **321 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/textalignment-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/textalignment-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/textalignment-property/llms-full.txt

---

### Description

Gets or sets a [value](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/textalignment/enumeration/llms-full.txt) indicating whether the barcode text and additional text is displayed below or above the barcode image. The default value is Bottom.

### Syntax

```csharp
public TextAlignment TextAlignment { get; set; }
```

```vbnet
Public Property TextAlignment As TextAlignment
```

### Examples

The following example uses `TXBarcodeControl.TextAlignment` to configure text alignment as part of the txbarcode control workflow. The change is then applied to the active document or user interface.

```csharp
tXBarcodeControl.TextAlignment = TXTextControl.Barcode.TextAlignment.Bottom;
tXBarcodeControl.Update();
```

```vbnet
tXBarcodeControl.TextAlignment = TXTextControl.Barcode.TextAlignment.Bottom
tXBarcodeControl.Update()
```

---

## Nearby

- **Previous:** [TXBarcodeControl.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/text-property/llms-full.txt)
- **Next:** [TXBarcodeControl.UpperTextLength Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/txbarcodecontrol/uppertextlength-property/llms-full.txt)
