Class PdfBarcodeTextAlignment
Inheritance
System.Object
PdfBarcodeTextAlignment
Namespace: Syncfusion.Pdf.Barcode
Assembly: Syncfusion.Pdf.NET.dll
Syntax
public sealed class PdfBarcodeTextAlignment : Enum
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page and adds it as the last page of the document
PdfPage page = document.Pages.Add();
//Creates a new PdfCode93Barcode.
PdfCode93Barcode code93 = new PdfCode93Barcode();
//Set the barcode text alignment
code93.TextAlignment = PdfBarcodeTextAlignment.Center;
//Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500));
//Save document to disk.
document.Save("Barcode.pdf");
'Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Creates a new page and adds it as the last page of the document
Dim page As PdfPage = document.Pages.Add()
'Creates a new PdfCode93Barcode.
Dim code39 As PdfCode93Barcode = New PdfCode93Barcode()
'Set the barcode text alignment
code93.TextAlignment = PdfBarcodeTextAlignment.Center
'Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500))
'Save the document.
document.Save("Barcode.pdf")
Fields
Center
Displays the readable text at the center of the barcode.
Declaration
public const PdfBarcodeTextAlignment Center
Field Value
Type |
---|
PdfBarcodeTextAlignment |
Left
Displays the readable text on the left side of the barcode.
Declaration
public const PdfBarcodeTextAlignment Left
Field Value
Type |
---|
PdfBarcodeTextAlignment |
Right
Displays the readable text on the right side of the barcode.
Declaration
public const PdfBarcodeTextAlignment Right
Field Value
Type |
---|
PdfBarcodeTextAlignment |