In This Article

EanUpcSymbologyBase Class

Provides a base class for EAN/UPC barcode symbologies.

public abstract class EanUpcSymbologyBase : LinearBarcodeSymbologyBase
Inheritance:
object ObservableObjectBase BarcodeSymbologyBase LinearBarcodeSymbologyBase object
Derived:
Ean13Symbology Ean8Symbology UpcASymbology UpcESymbology

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

Extension Methods