TX Text Control .NET for WPF

Alignment 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 image inside the control. The enumeration contains the following values:

Syntax

public enum Alignment

Members

MemberValueDescription
BottomCenter7Sets the alignment of the image to the bottom center of the control.
BottomLeft8Sets the alignment of the image to the bottom left of the control.
BottomRight9Sets the alignment of the image to the bottom right of the control.
MiddleCenter5Sets the alignment of the image to the middle center of the control.
MiddleLeft4Sets the alignment of the image to the middle left of the control.
MiddleRight6Sets the alignment of the image to the middle right of the control.
TopCenter2Sets the alignment of the image to the top center of the control.
TopLeft1Sets the alignment of the image to the top left of the control.
TopRight3Sets 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}");