menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class UnidimensionalBarcode - WPF 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.BackColor
    BarcodeBase.BarColor
    BarcodeBase.barHeight
    BarcodeBase.BarHeight
    BarcodeBase.bounds
    BarcodeBase.Bounds
    BarcodeBase.GetSizeValue()
    BarcodeBase.Location
    BarcodeBase.NarrowBarWidth
    BarcodeBase.QuietZone
    BarcodeBase.Size
    BarcodeBase.Text
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.UI.Xaml.Controls.Barcode
    Assembly: Syncfusion.SfBarcode.WPF.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
    System.Boolean

    Properties

    BarcodeToTextGapHeight

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

    The Default value is 5.

    EnableCheckDigit

    Declaration
    public bool EnableCheckDigit { get; set; }
    Property Value
    Type
    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.

    ShowCheckDigit

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

    The Default value is false.

    TextAlignment

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

    Default value is Center.

    TextDisplayLocation

    Gets or sets the text display location. TextDisplayLocation

    Declaration
    public BarcodeTextLocation TextDisplayLocation { get; set; }
    Property Value
    Type
    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

    GetExtendedTextValue()

    To get the Extended Text

    Declaration
    protected virtual void GetExtendedTextValue()

    ToImage()

    Exports the Unidimensional Barcode as BitmapImage. System.Windows.Media.Imaging.BitmapSource object.

    Declaration
    public BitmapSource ToImage()
    Returns
    Type
    System.Windows.Media.Imaging.BitmapSource

    ToImage(Size)

    Exports the Unidimensional Barcode as BitmapImage. System.Windows.Media.Imaging.BitmapSource object.

    Declaration
    public BitmapSource ToImage(Size size)
    Parameters
    Type Name Description
    System.Windows.Size size
    Returns
    Type
    System.Windows.Media.Imaging.BitmapSource

    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 - 2025 Syncfusion Inc. All Rights Reserved