TX Text Control .NET for WPF

TextAlignment 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 a value indicating whether the barcode text and additional text is displayed below or above the barcode image. The default value is Bottom.

Syntax

public TextAlignment TextAlignment { get; set; }

Examples

The following example uses TXBarcodeControl.TextAlignment to configure text alignment as part of the txbarcode control workflow. The configured value is checked before the workflow continues.

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