menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TextLocation - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TextLocation

    Inheritance
    System.Object
    TextLocation
    Namespace: Syncfusion.Pdf.Barcode
    Assembly: Syncfusion.Pdf.Portable.dll
    Syntax
    public sealed class TextLocation : 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 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

    Bottom

    Displays text, at the bottom of the barcode.

    Declaration
    public const TextLocation Bottom
    Field Value
    Type
    TextLocation

    None

    Displays, no text.

    Declaration
    public const TextLocation None
    Field Value
    Type
    TextLocation

    Top

    Displays text, above the barcode.

    Declaration
    public const TextLocation Top
    Field Value
    Type
    TextLocation
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved