EanUpcSymbologyBase Class
Provides a base class for EAN/UPC barcode symbologies.
public abstract class EanUpcSymbologyBase : LinearBarcodeSymbologyBase
- Inheritance:
- object ObservableObjectBase BarcodeSymbologyBase LinearBarcodeSymbologyBase object
Remarks
EAN (European Article Number) and UPC (Universal Product Code) are widely used retail barcode symbologies. They share a common encoding structure based on left-hand and right-hand digit patterns with guard bars.
This base class provides the shared encoding tables, check digit calculation, and supplement support used by Ean13Symbology, Ean8Symbology, UpcASymbology, and UpcESymbology.
EAN/UPC symbologies optionally support 2-digit and 5-digit add-on supplements. These supplements are commonly used for magazine/periodical issue numbers (2-digit) and suggested retail prices on books (5-digit). Use a supplement value in the encoding request to configure supplements.
Constructors
EanUpcSymbologyBase()
Initializes an instance of the class.
protected EanUpcSymbologyBase()
Methods
ValidateSupplement(string?)
Validates the supplement value.
public virtual string? ValidateSupplement(string? supplementValue)
| Parameter | Type | Description |
|---|---|---|
| supplementValue | string | The supplement value from the encoding request. |
Returns
- string:
An error message if the supplement configuration is invalid; otherwise
null.
Inherited Members
- LinearBarcodeSymbologyBase.GetMargin()
- LinearBarcodeSymbologyBase.GetModulesWidth(int)
- LinearBarcodeSymbologyBase.BarHeight
- LinearBarcodeSymbologyBase.MinHeightToWidthRatio
- LinearBarcodeSymbologyBase.QuietZoneThickness
- LinearBarcodeSymbologyBase.ValueAlignment
- BarcodeSymbologyBase.CreateRenderData(BarcodeEncodingRequest)
- BarcodeSymbologyBase.CreateRenderDataAsync(BarcodeEncodingRequest, CancellationToken)
- BarcodeSymbologyBase.Validate(string)
- BarcodeSymbologyBase.ExampleValue
- BarcodeSymbologyBase.Name
- ObservableObjectBase.OnPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.OnPropertyChanging(string)
- ObservableObjectBase.OnPropertyChanging(PropertyChangingEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- ObservableObjectBase.PropertyChanging
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()