TX Text Control .NET for Windows Forms

TextAlignment 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 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 TXBarcodeCore.TextAlignment to configure text alignment as part of the txbarcode core workflow. The configured value is checked before the workflow continues.

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