Alignment Property
- Namespace
TXTextControl.Barcode
- Package
TXTextControl.asTextControl. WPF. SDK TXBarcode.from the private NuGet feed or Text Control Offline Packagesdll
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}")