TX Text Control .NET for WPF

Alignment Property

Property|Introduced in 29.0
Namespace
TXTextControl.WPF.Barcode
Package
TXTextControl.TextControl.WPF.SDK as TXBarcode.WPF.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 TXBarcodeControl.Alignment to configure alignment as part of the txbarcode control workflow. The configured value is checked before the workflow continues.

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