# TXBarcodeCore.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 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.TextAlignment Property
- **362 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/textalignment-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/textalignment-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-barcode/txbarcodecore/textalignment-property/llms-full.txt

---

### Description

Gets or sets a [value](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/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 `TXBarcodeCore.TextAlignment` to configure text alignment as part of the txbarcode core workflow. The configured value is checked before the workflow continues.

```csharp
tXBarcodeCore.TextAlignment = TXTextControl.Barcode.TextAlignment.Bottom;
Console.WriteLine($"Text Alignment used by TXBarcode Core: {tXBarcodeCore.TextAlignment}");
```

```vbnet
tXBarcodeCore.TextAlignment = TXTextControl.Barcode.TextAlignment.Bottom
Console.WriteLine($"Text Alignment used by TXBarcode Core: {tXBarcodeCore.TextAlignment}")
```

---

## Nearby

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