TX Text Control .NET for Windows Forms

Alignment Property

Property|Introduced in 33.0
Namespace
TXTextControl.Barcode
Package
TXTextControl.TextControl.WinForms.SDK as TXBarcode.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the alignment of the barcode image inside the control. The default value is TXTextControl.Barcode.Alignment.MiddleCenter.

Syntax

public Alignment Alignment { get; set; }

Examples

The following example uses TXBarcodeCore.Alignment to configure alignment as part of the txbarcode core workflow. The configured value is checked before the workflow continues.

tXBarcodeCore.Alignment = TXTextControl.Barcode.Alignment.TopLeft;
Console.WriteLine($"Alignment used by TXBarcode Core: {tXBarcodeCore.Alignment}");