In This Article

Ean13Symbology Class

Represents a barcode symbology implementation for EAN-13.

public class Ean13Symbology : EanUpcSymbologyBase
Inheritance:
object ObservableObjectBase BarcodeSymbologyBase LinearBarcodeSymbologyBase EanUpcSymbologyBase object

Remarks

EAN-13 (European Article Number) is the most widely used retail barcode symbology worldwide. It encodes a 13-digit number consisting of a country/system prefix, manufacturer code, product code, and a check digit.

The value provided should be either 12 digits (the check digit is auto-calculated and appended) or 13 digits (the provided check digit is validated). Only digits 0-9 are supported.

The first digit (number system) determines the parity pattern used to encode the left-hand digit group, making it implicitly encoded without requiring a separate barcode module. The remaining 12 digits are encoded as two groups of 6 digits each, separated by a center guard pattern.

A UPC-A barcode is equivalent to an EAN-13 barcode with a leading 0. The UPC-A-specific implementation is available in UpcASymbology.

This symbology supports optional 2-digit and 5-digit add-on supplements via a supplement value in the encoding request.

Constructors

Ean13Symbology()

Initializes an instance of the class.

public Ean13Symbology()

Properties

ExampleValue

An example value that is valid for the symbology.

public override string ExampleValue { get; }

Property Value

string

Name

The name of the symbology.

public override string Name { get; }

Property Value

string

Methods

CreateRenderData(BarcodeEncodingRequest)

Creates the render data for the specified encoding request.

public override BarcodeRenderData CreateRenderData(BarcodeEncodingRequest request)
Parameter Type Description
request BarcodeEncodingRequest

The encoding request.

Returns

BarcodeRenderData:

The BarcodeRenderData for the encoded value.

Validate(string)

Validates the specified value.

public override BarcodeValidationResult Validate(string value)
Parameter Type Description
value string

The value to validate.

Returns

BarcodeValidationResult:

A BarcodeValidationResult containing the validation result.

Inherited Members

Extension Methods