WinUI

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class UpcBarcode - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class UpcBarcode

    Represents a class which encodes the following characters, [0-9] and text length should be 11 or 12.

    Inheritance
    System.Object
    NotificationObject
    BarcodeBase
    UnidimensionalBarcode
    UpcBarcode
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    UnidimensionalBarcode.GetExtendedText(SfBarcode)
    UnidimensionalBarcode.Validate(String)
    UnidimensionalBarcode.GetTextToEncode(SfBarcode)
    UnidimensionalBarcode.ShowCheckSum
    UnidimensionalBarcode.EnableCheckSum
    UnidimensionalBarcode.EncodeStartStopSymbols
    NotificationObject.RaisePropertyChanged(String)
    NotificationObject.RaisePropertyChanged(String[])
    NotificationObject.PropertyChanged
    Namespace: Syncfusion.UI.Xaml.Barcode
    Assembly: Syncfusion.Barcode.WinUI.dll
    Syntax
    public class UpcBarcode : UnidimensionalBarcode, INotifyPropertyChanged
    Remarks

    This class provides the base class for the following SfBarcode types,

    • CodabarBarcode
    • Code11Barcode
    • Code128ABarcode
    • Code128BBarcode
    • Code128CBarcode
    • Code32Barcode
    • Code39Barcode
    • Code39ExtendedBarcode
    • Code93Barcode
    • Code93ExtendedBarcode
    • UpcBarcode
    Examples
    <syncfusion:SfBarcode Width="200" Height="200" Value="48625335610">
         <syncfusion:SfBarcode.Symbology>
              <syncfusion:UpcBarcode/>
         </syncfusion:SfBarcode.Symbology>
    </syncfusion:SfBarcode>
    using Syncfusion.UI.Xaml.Barcode
    �
    SfBarcode sfBarcode = new SfBarcode();
    sfBarcode.Value = "48625335610";
    sfBarcode.Symbology = new UpcBarcode();

    Constructors

    UpcBarcode()

    Initializes a new instance of the UpcBarcode class.

    Declaration
    public UpcBarcode()

    Methods

    CalculateCheckDigit(SfBarcode)

    Calculates the check digit for this barcode specification.

    Declaration
    protected override char[] CalculateCheckDigit(SfBarcode barcode)
    Parameters
    Type Name Description
    SfBarcode barcode

    The Barcode.

    Returns
    Type Description
    System.Char[]

    The Check digits.

    Overrides
    UnidimensionalBarcode.CalculateCheckDigit(SfBarcode)

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved