TX Text Control .NET for Windows Forms

TextAlignment Property

Property|Introduced in 29.0
Namespace
TXTextControl.Barcode
Package
TXTextControl.TextControl.WinForms.SDK as TXBarcode.Windows.Forms.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 change is then applied to the active document or user interface.

tXBarcodeControl.TextAlignment = TXTextControl.Barcode.TextAlignment.Bottom;
tXBarcodeControl.Update();