Enum TextLocation
Namespace: Syncfusion.Pdf.Barcode
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public enum TextLocation
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 location.
code93.TextDisplayLocation = TextLocation.Bottom;
//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 location.
code93.TextDisplayLocation = TextLocation.Bottom
'Draw a barcode in the new Page.
code93.Draw(page, new PointF(25, 500))
'Save the document.
document.Save("Barcode.pdf")
Fields
Name | Description |
---|---|
Bottom | Displays text, at the bottom of the barcode. |
None | Displays, no text. |
Top | Displays text, above the barcode. |