Class UpcBarcode
Represents a class which encodes the following characters, [0-9] and text length should be 11 or 12.
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
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,
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
Implements
System.ComponentModel.INotifyPropertyChanged