Ean8Symbology Class
Represents a barcode symbology implementation for EAN-8.
public class Ean8Symbology : EanUpcSymbologyBase
- Inheritance:
- object ObservableObjectBase BarcodeSymbologyBase LinearBarcodeSymbologyBase EanUpcSymbologyBase object
Remarks
EAN-8 is a compressed version of EAN-13 used for small packages where an EAN-13 barcode would be too large. It encodes an 8-digit number consisting of a country code, product code, and a check digit.
The value provided should be either 7 digits (the check digit is auto-calculated and appended) or 8 digits
(the provided check digit is validated). Only digits 0-9 are supported.
The encoding structure consists of a start guard, 4 left-hand digits encoded with L-codes, a center guard, 4 right-hand digits encoded with R-codes, and an end guard. Unlike EAN-13, EAN-8 does not use parity encoding for the left-hand digits.
This symbology supports optional 2-digit and 5-digit add-on supplements via a supplement value in the encoding request.
Constructors
Ean8Symbology()
Initializes an instance of the class.
public Ean8Symbology()
Properties
ExampleValue
An example value that is valid for the symbology.
Name
The name of the symbology.
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
- EanUpcSymbologyBase.ValidateSupplement(string)
- LinearBarcodeSymbologyBase.GetMargin()
- LinearBarcodeSymbologyBase.GetModulesWidth(int)
- LinearBarcodeSymbologyBase.BarHeight
- LinearBarcodeSymbologyBase.MinHeightToWidthRatio
- LinearBarcodeSymbologyBase.QuietZoneThickness
- LinearBarcodeSymbologyBase.ValueAlignment
- BarcodeSymbologyBase.CreateRenderDataAsync(BarcodeEncodingRequest, CancellationToken)
- 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()