# TXBarcodeCore.Alignment Property

> Gets or sets the alignment of the barcode image inside the control. The default value is TXTextControl.Barcode.Alignment.MiddleCenter.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 33.0
- **Namespace:** `TXTextControl.Barcode`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXBarcode.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl.Barcode > TXBarcodeCore.Alignment Property
- **350 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/alignment-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/alignment-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/alignment-property/llms-full.txt

---

### Description

Gets or sets the [alignment](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/alignment/enumeration/llms-full.txt) of the barcode image inside the control. The default value is `TXTextControl.Barcode.Alignment.MiddleCenter`.

### Syntax

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

```vbnet
Public Property Alignment As Alignment
```

### Examples

The following example uses `TXBarcodeCore.Alignment` to configure alignment as part of the txbarcode core workflow. The configured value is checked before the workflow continues.

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

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

---

## Nearby

- **Previous:** [TXBarcodeCore.AdditionalText Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/additionaltext-property/llms-full.txt)
- **Next:** [TXBarcodeCore.Angle Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/angle-property/llms-full.txt)
