menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class UnidimensionalBarcode - Xamarin.Android 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
    Namespace: Com.Syncfusion.Barcode
    Assembly: Syncfusion.SfBarcode.Android.dll
    Syntax
    public 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

    continuous

    To check whether Barcode is Continuous Barcode or discrete

    Declaration
    protected bool continuous
    Field Value
    Type
    System.Boolean

    isCheckDigitAdded

    Indicates whether the Checkdigit is already added to the barcode text or not. Used with the barcodes which involves multiple checksum calculations.

    Declaration
    protected bool isCheckDigitAdded
    Field Value
    Type
    System.Boolean

    Properties

    MCodeValidator

    Gets or sets the code validator. MCodeValidator

    Declaration
    public Pattern MCodeValidator { get; set; }
    Property Value
    Type
    Java.Util.Regex.Pattern

    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

    GetCharBarsCount(Char)

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

    Declaration
    protected float GetCharBarsCount(char character)
    Parameters
    Type Name Description
    System.Char character
    Returns
    Type
    System.Single

    GetCharWidth(Char)

    Returns the Character width.

    Declaration
    protected float GetCharWidth(char character)
    Parameters
    Type Name Description
    System.Char character
    Returns
    Type Description
    System.Single

    The width.

    GetExtendedTextValue()

    To get the Extended Text

    Declaration
    protected virtual void GetExtendedTextValue()

    GetTextToEncode()

    Returns the Actual text to encode.

    Declaration
    protected virtual string GetTextToEncode()
    Returns
    Type Description
    System.String

    The Actual Text.

    GetTextToEncodeList()

    Get text to encode list

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

    OnDraw(Canvas)

    Draw unidimentional barcode

    Declaration
    public float OnDraw(Canvas m_canvas)
    Parameters
    Type Name Description
    Android.Graphics.Canvas m_canvas
    Returns
    Type
    System.Single

    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