menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfCodabarBarcode - UWP API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfCodabarBarcode

    Inheritance
    System.Object
    PdfBarcode
    PdfUnidimensionalBarcode
    PdfCodabarBarcode
    Inherited Members
    PdfBarcode.BackColor
    PdfBarcode.BarColor
    PdfBarcode.barHeight
    PdfBarcode.BarHeight
    PdfBarcode.bounds
    PdfBarcode.Bounds
    PdfBarcode.Location
    PdfBarcode.NarrowBarWidth
    PdfBarcode.QuietZone
    PdfBarcode.size
    PdfBarcode.Size
    PdfBarcode.Text
    PdfBarcode.TextColor
    PdfUnidimensionalBarcode.BarcodeToTextGapHeight
    PdfUnidimensionalBarcode.CalculateCheckDigit()
    PdfUnidimensionalBarcode.check
    PdfUnidimensionalBarcode.Draw(PdfGraphics)
    PdfUnidimensionalBarcode.Draw(PdfGraphics, PointF)
    PdfUnidimensionalBarcode.Draw(PdfGraphics, PointF, SizeF)
    PdfUnidimensionalBarcode.Draw(PdfGraphics, RectangleF)
    PdfUnidimensionalBarcode.Draw(PdfGraphics, Single, Single, Single, Single)
    PdfUnidimensionalBarcode.Draw(PdfPageBase)
    PdfUnidimensionalBarcode.Draw(PdfPageBase, PointF)
    PdfUnidimensionalBarcode.Draw(PdfPageBase, PointF, SizeF)
    PdfUnidimensionalBarcode.Draw(PdfPageBase, RectangleF)
    PdfUnidimensionalBarcode.Draw(PdfPageBase, Single, Single, Single, Single)
    PdfUnidimensionalBarcode.EnableCheckDigit
    PdfUnidimensionalBarcode.EncodeStartStopSymbols
    PdfUnidimensionalBarcode.Font
    PdfUnidimensionalBarcode.GetExtendedTextValue()
    PdfUnidimensionalBarcode.GetSizeValue()
    PdfUnidimensionalBarcode.PaintRectangle(PdfGraphics, RectangleF)
    PdfUnidimensionalBarcode.PaintRectangle(PdfPageBase, RectangleF)
    PdfUnidimensionalBarcode.PaintRectangleTag(PdfTemplate, RectangleF)
    PdfUnidimensionalBarcode.ShowCheckDigit
    PdfUnidimensionalBarcode.TextAlignment
    PdfUnidimensionalBarcode.TextDisplayLocation
    PdfUnidimensionalBarcode.Validate(String)
    Namespace: Syncfusion.Pdf.Barcode
    Assembly: Syncfusion.Pdf.UWP.dll
    Syntax
    public class PdfCodabarBarcode : PdfUnidimensionalBarcode
    Remarks

    This symbology allows the encoding of strings of up to 16 digits, 10 numeric digits (0 through 9) and 6 special non alpha characters ("+", "-", "$", "/", ":", ".").

    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();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ;
    //Creates a new PdfCodabarBarcode.
    PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode();
    //Set the font to codabarcode.
    codaBarcode.Font = font;
    //Set the barcode text.
    codaBarcode.Text = "0123";
    //Draw a barcode in the new Page.
    codaBarcode.Draw(page, new PointF(25, 500));
    //Save the document to disk.
    document.Save("CodaBarcode.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()
    'Create font and font style.
    Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold)
    'Creates a new PdfCodabarBarcode.
    Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode()
    'Set the font..
    codaBarcode.Font = font
    'Set the barcode text.
    codaBarcode.Text = "0123"
    'Draw a barcode in the new Page.
    codaBarcode.Draw(page, new PointF(25, 500))
    'Save the  document to disk.
    document.Save("CodaBarcode.pdf")

    Constructors

    PdfCodabarBarcode()

    Initializes a new instance of the PdfCodabarBarcode class.

    Declaration
    public PdfCodabarBarcode()
    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();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ;
    //Creates a new PdfCodabarBarcode.
    PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode();
    //Set the font to codabarcode.
    codaBarcode.Font = font;
    //Set the barcode text.
    codaBarcode.Text = "0123";
    //Draw a barcode in the new Page.
    codaBarcode.Draw(page, new PointF(25, 500));
    //Save the  document to disk.
    document.Save("CodaBarcode.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()
    'Create font and font style.
    Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold)
    'Creates a new PdfCodabarBarcode.
    Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode()
    'Set the font..
    codaBarcode.Font = font
    'Set the barcode text.
    codaBarcode.Text = "0123"
    'Draw a barcode in the new Page.
    codaBarcode.Draw(page, new PointF(25, 500))
    'Save the  document to disk.
    document.Save("CodaBarcode.pdf")

    PdfCodabarBarcode(String)

    Initializes a new instance of the PdfCodabarBarcode class.

    Declaration
    public PdfCodabarBarcode(string text)
    Parameters
    Type Name Description
    System.String text

    The Barcode Text.

    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();
    //Create font and font style.
    PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ;
    //Creates a new PdfCodabarBarcode.
    PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode("0123");
    //Set the font to codabarcode.
    codaBarcode.Font = font;
    //Draw a barcode in the new Page.
    codaBarcode.Draw(page, new PointF(25, 500));
    //Save the  document to disk.
    document.Save("CodaBarcode.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()
    'Create font and font style.
    Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold)
    'Creates a new PdfCodabarBarcode.
    Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode("0123")
    'Set the font..
    codaBarcode.Font = font
    'Draw a barcode in the new Page.
    codaBarcode.Draw(page, new PointF(25, 500))
    'Save the  document to disk.
    document.Save("CodaBarcode.pdf")

    Extension Methods

    DateTimeExtension.ToDateTime(Object)

    See Also

    PdfCode11Barcode
    PdfCode32Barcode
    PdfCode128ABarcode
    PdfCode128BBarcode
    PdfCode128CBarcode
    PdfCode39Barcode
    PdfCode39ExtendedBarcode
    PdfCode93Barcode
    PdfCode93ExtendedBarcode
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved