# Alignment Enumeration

> Determines the alignment of the barcode image inside the control. The enumeration contains the following values:

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Enumeration
- **Namespace:** `TXTextControl.Barcode`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl.Barcode > Alignment Enumeration
- **692 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/alignment/enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/alignment/enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/alignment/enumeration/llms-full.txt

---

### Description

Determines the alignment of the barcode image inside the control. The enumeration contains the following values:

### Syntax

```csharp
public enum Alignment
```

```vbnet
Public Enum Alignment
```

### Members

| Member | Value | Description |
|---|---|---|
| BottomCenter | 7 | Sets the alignment of the image to the bottom center of the control. |
| BottomLeft | 8 | Sets the alignment of the image to the bottom left of the control. |
| BottomRight | 9 | Sets the alignment of the image to the bottom right of the control. |
| MiddleCenter | 5 | Sets the alignment of the image to the middle center of the control. |
| MiddleLeft | 4 | Sets the alignment of the image to the middle left of the control. |
| MiddleRight | 6 | Sets the alignment of the image to the middle right of the control. |
| TopCenter | 2 | Sets the alignment of the image to the top center of the control. |
| TopLeft | 1 | Sets the alignment of the image to the top left of the control. |
| TopRight | 3 | Sets the alignment of the image to the top right of the control. |

### Examples

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

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

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

---

## Nearby

- **Previous:** [TXTextControl.Barcode Enumerations](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/enumerations/llms-full.txt)
- **Next:** [BarcodeType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-barcode/barcodetype/enumeration/llms-full.txt)
