Alignment Property
- Namespace
TXTextControl.WPF. Barcode
- Package
TXTextControl.asTextControl. WPF. SDK TXBarcode.from the private NuGet feed or Text Control Offline PackagesWPF. 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 TXBarcodeControl.Alignment to configure alignment as part of the txbarcode control workflow. The configured value is checked before the workflow continues.
tXBarcodeControl.Alignment = TXTextControl.Barcode.Alignment.TopLeft;
Console.WriteLine($"Alignment used by TXBarcode Control: {tXBarcodeControl.Alignment}");tXBarcodeControl.Alignment = TXTextControl.Barcode.Alignment.TopLeft
Console.WriteLine($"Alignment used by TXBarcode Control: {tXBarcodeControl.Alignment}")