TX Text Control .NET for WPF

TextAlignment Enumeration

Enumeration
Namespace
TXTextControl.Barcode
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXBarcode.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXBarcode.dll from the setup.

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 TextAlignment

Members

MemberValueDescription
Bottom1The text is displayed below the barcode image.
Top2The 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}");