TextAlignment Enumeration
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXBarcode.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXBarcode.from the setup.dll
Description
Determines the alignment of the barcode text and additional text that is displayed inside the control. The enumeration contains the following values:
Syntax
public enum TextAlignmentPublic Enum TextAlignmentMembers
| Member | Value | Description |
|---|---|---|
| Bottom | 1 | The text is displayed below the barcode image. |
| Top | 2 | The text is displayed above the barcode image. |
Examples
The following example selects the Bottom value from the Text Alignment enumeration and uses it as a documented workflow choice.
TXTextControl.Barcode.TextAlignment value = TXTextControl.Barcode.TextAlignment.Bottom;
Console.WriteLine($"Using Text Alignment: {value}");Dim value As TXTextControl.Barcode.TextAlignment = TXTextControl.Barcode.TextAlignment.Bottom
Console.WriteLine($"Using Text Alignment: {value}")