WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BarcodeBase - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class BarcodeBase

    Represents a base class for all barcode types.

    Inheritance
    System.Object
    BarcodeBase
    UnidimensionalBarcode
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Barcode
    Assembly: Syncfusion.SfBarcode.Windows.dll
    Syntax
    public class BarcodeBase

    Constructors

    BarcodeBase()

    Initializes a new instance of the Syncfusion.Windows.Forms.Barcode class.

    Declaration
    public BarcodeBase()

    BarcodeBase(String)

    Initializes a new instance of the Syncfusion.Windows.Forms.Barcode class.

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

    Set the barcode text.

    Fields

    barHeight

    Indicates the bar height of the barcode.

    Declaration
    protected float barHeight
    Field Value
    Type Description
    System.Single

    barHeightEnabled

    Indicates BarHeight enabled when sets BarHeight value ;

    Declaration
    protected bool barHeightEnabled
    Field Value
    Type Description
    System.Boolean

    bounds

    Indicates the region of the barcode.

    Declaration
    protected RectangleF bounds
    Field Value
    Type Description
    System.Drawing.RectangleF

    size

    Indicates the size of the the barcode to draw in the PDF Document.

    Declaration
    protected SizeF size
    Field Value
    Type Description
    System.Drawing.SizeF

    Properties

    BackColor

    Gets or sets the back color of the barcode.

    Declaration
    public Color BackColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    BarColor

    Gets or sets the bar color of the barcode.

    Declaration
    public Color BarColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    BarHeight

    Gets or sets the bar height.

    Declaration
    public float BarHeight { get; set; }
    Property Value
    Type Description
    System.Single

    Bounds

    Gets or sets the rectangular area occupied by the barcode.

    Declaration
    public RectangleF Bounds { get; set; }
    Property Value
    Type Description
    System.Drawing.RectangleF

    Location

    Gets or sets the location to render barcode in the PDF Document.

    Declaration
    public PointF Location { get; set; }
    Property Value
    Type Description
    System.Drawing.PointF

    NarrowBarWidth

    Gets or sets the narrow bar width.

    Declaration
    public float NarrowBarWidth { get; set; }
    Property Value
    Type Description
    System.Single

    QuietZone

    Gets or sets the empty area which is to be allocated around the barcode.

    Declaration
    public BarcodeQuietZones QuietZone { get; set; }
    Property Value
    Type Description
    BarcodeQuietZones

    Size

    Gets the size of the barcode.

    Declaration
    public SizeF Size { get; set; }
    Property Value
    Type Description
    System.Drawing.SizeF

    Text

    Gets or Sets the barcode text.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    TextColor

    Gets or sets the text color of the barcode text.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    Methods

    GetSizeValue()

    Internal method which calculates the size of the barcode which is going to rendered.

    Declaration
    protected virtual SizeF GetSizeValue()
    Returns
    Type Description
    System.Drawing.SizeF

    Validate(String)

    Internal method which validates whether the given text is acceptable by the current barcode specification or not.

    Declaration
    protected virtual bool Validate(string data)
    Parameters
    Type Name Description
    System.String data

    The Text.

    Returns
    Type Description
    System.Boolean

    True if Valid, Otherwise False

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved