Alignment 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 the alignment of the barcode image inside the control. The default value is TXTextControl.Barcode.Alignment.MiddleCenter.
Syntax
public Alignment Alignment { get; set; }Public Property Alignment As AlignmentExamples
The following example uses TXBarcodeCore.Alignment to configure alignment as part of the txbarcode core workflow. The configured value is checked before the workflow continues.
tXBarcodeCore.Alignment = TXTextControl.Barcode.Alignment.TopLeft;
Console.WriteLine($"Alignment used by TXBarcode Core: {tXBarcodeCore.Alignment}");tXBarcodeCore.Alignment = TXTextControl.Barcode.Alignment.TopLeft
Console.WriteLine($"Alignment used by TXBarcode Core: {tXBarcodeCore.Alignment}")