Alignment Enumeration
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXBarcode.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXBarcode.from the setup.dll
Description
Determines the alignment of the barcode image inside the control. The enumeration contains the following values:
Syntax
public enum AlignmentPublic Enum AlignmentMembers
| 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.
TXTextControl.Barcode.Alignment value = TXTextControl.Barcode.Alignment.TopLeft;
Console.WriteLine($"Using Alignment: {value}");Dim value As TXTextControl.Barcode.Alignment = TXTextControl.Barcode.Alignment.TopLeft
Console.WriteLine($"Using Alignment: {value}")