UpcESymbology Class
Represents a barcode symbology implementation for UPC-E.
public class UpcESymbology : EanUpcSymbologyBase
- Inheritance:
- object ObservableObjectBase BarcodeSymbologyBase LinearBarcodeSymbologyBase EanUpcSymbologyBase object
Remarks
UPC-E is a compressed (zero-suppressed) version of UPC-A designed for use on small packages. It encodes an 8-digit number (including the number system digit and check digit) that can be expanded back to a full 12-digit UPC-A code.
The value provided should be either a 6-digit compressed code (number system and check digit are determined
automatically), a 7-digit code (with number system prefix; check digit is auto-calculated),
or an 8-digit code (with number system prefix and check digit, which is validated).
Only digits 0-9 are supported.
The number system digit must be 0 or 1.
UPC-E encoding uses 6 digits with variable parity (based on the check digit) between two guard patterns. There is no center guard pattern in UPC-E.
This symbology supports optional 2-digit and 5-digit add-on supplements via a supplement value in the encoding request.
Constructors
UpcESymbology()
Initializes an instance of the class.
public UpcESymbology()
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()