TextAlignment Property
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. Core. SDK TXBarcode.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTextControl. ASP. SDK TXBarcode.dll
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; }Public Property TextAlignment As TextAlignmentExamples
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}");tXBarcodeCore.TextAlignment = TXTextControl.Barcode.TextAlignment.Bottom
Console.WriteLine($"Text Alignment used by TXBarcode Core: {tXBarcodeCore.TextAlignment}")