WinForms

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

    Show / Hide Table of Contents

    Class UnidimensionalBarcode

    Represents the Base class for all the Single dimensional barcodes

    Inheritance
    System.Object
    BarcodeBase
    UnidimensionalBarcode
    CodabarBarcode
    Code11Barcode
    Code128ABarcode
    Code128BBarcode
    Code128CBarcode
    Code39Barcode
    Code93Barcode
    UpcBarcode
    Inherited Members
    BarcodeBase.bounds
    BarcodeBase.size
    BarcodeBase.barHeight
    BarcodeBase.barHeightEnabled
    BarcodeBase.BackColor
    BarcodeBase.BarColor
    BarcodeBase.TextColor
    BarcodeBase.NarrowBarWidth
    BarcodeBase.Text
    BarcodeBase.Location
    BarcodeBase.QuietZone
    BarcodeBase.BarHeight
    BarcodeBase.Size
    BarcodeBase.Bounds
    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 abstract class UnidimensionalBarcode : BarcodeBase

    Constructors

    UnidimensionalBarcode()

    Initializes the new instance of UnidimensionalBarcode

    Declaration
    public UnidimensionalBarcode()

    Fields

    check

    Automatically adds the check digit to the barcode when true.

    Declaration
    protected bool check
    Field Value
    Type Description
    System.Boolean

    Properties

    BarcodeToTextGapHeight

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

    EnableCheckDigit

    Declaration
    public bool EnableCheckDigit { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    The Default value is True.

    EncodeStartStopSymbols

    Declaration
    public bool EncodeStartStopSymbols { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if [encode start stop symbols]; otherwise, false.

    Font

    Gets or sets the Text font.

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

    ShowCheckDigit

    Declaration
    public bool ShowCheckDigit { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    The Default value is false.

    TextAlignment

    Declaration
    public BarcodeTextAlignment TextAlignment { get; set; }
    Property Value
    Type Description
    BarcodeTextAlignment
    Remarks

    Default value is Center.

    TextDisplayLocation

    Gets or sets the text display location. TextDisplayLocation

    Declaration
    public BarcodeTextLocation TextDisplayLocation { get; set; }
    Property Value
    Type Description
    BarcodeTextLocation

    Methods

    CalculateCheckDigit()

    Calculates the check digit based on the barcode specification.

    Declaration
    protected virtual char[] CalculateCheckDigit()
    Returns
    Type Description
    System.Char[]

    Char array containing Check digits

    Draw(Int32)

    Declaration
    public virtual Image Draw(int angle)
    Parameters
    Type Name Description
    System.Int32 angle
    Returns
    Type Description
    System.Drawing.Image

    Draw(Panel)

    Declaration
    public SizeF Draw(Panel panel)
    Parameters
    Type Name Description
    System.Windows.Forms.Panel panel
    Returns
    Type Description
    System.Drawing.SizeF

    GetExtendedTextValue()

    To get the Extended Text

    Declaration
    protected virtual void GetExtendedTextValue()

    GetSizeValue()

    Returns the size of the barcode.

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

    The Size.

    Overrides
    BarcodeBase.GetSizeValue()

    GetTextToEncodeList()

    Returns the encoded list bytes from text.

    Declaration
    protected virtual List<byte[]> GetTextToEncodeList()
    Returns
    Type Description
    System.Collections.Generic.List<System.Byte[]>

    Validate(String)

    Internal method used to validate the given barcode text.

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

    The Text.

    Returns
    Type Description
    System.Boolean

    True if valid, Otherwise False.

    Overrides
    BarcodeBase.Validate(String)
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved