Itf14Symbology Class
Represents a barcode symbology implementation for ITF-14, an application of Interleaved 2 of 5 used for GTIN-14 identifiers.
public class Itf14Symbology : Interleaved2of5Symbology
- Inheritance:
- object ObservableObjectBase BarcodeSymbologyBase LinearBarcodeSymbologyBase Interleaved2of5Symbology object
Remarks
ITF-14 is a standardized use of the Interleaved 2 of 5 symbology that encodes 14-digit GTIN (Global Trade Item Number) identifiers. It is defined by GS1 and is widely used on shipping cartons and outer packaging in the supply chain.
The value provided should be either 13 digits (the check digit is auto-calculated and appended) or 14 digits (the provided check digit is validated). The check digit uses the same modulo-10 algorithm as the base Interleaved2of5Symbology.
This symbology defaults to displaying a Rectangle bearer bar frame, which is the most common ITF-14 presentation. The bearer bar kind and thickness can be customized using the BearerBarKind and BearerBarWidth properties.
The standard Interleaved 2 of 5 implementation is available in Interleaved2of5Symbology.
Constructors
Itf14Symbology()
Initializes an instance of the class.
public Itf14Symbology()
Properties
AreAllDigitsVisible
Indicates whether all digits are visible in the displayed value.
protected override bool AreAllDigitsVisible { get; }
Property Value
- bool:
The default value is
true.
ExampleValue
An example value that is valid for the symbology.
Name
The name of the symbology.
Methods
CalculateChecksumDigit(string)
Calculates a check digit for the given value.
protected override char CalculateChecksumDigit(string value)
| Parameter | Type | Description |
|---|---|---|
| value | string | The value for which to calculate the checksum digit. |
Returns
- char:
The calculated checksum digit, or character value
'\0'if no checksum should be used.
Remarks
The default implementation uses the standard GS1 modulo-10 algorithm. Derived symbologies may override this to implement different checksum algorithms as needed.
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
- Interleaved2of5Symbology.CreateRenderData(BarcodeEncodingRequest)
- Interleaved2of5Symbology.GetMargin()
- Interleaved2of5Symbology.GetModulesWidth(int)
- Interleaved2of5Symbology.BearerBarKind
- Interleaved2of5Symbology.BearerBarWidth
- Interleaved2of5Symbology.IsChecksumEnabled
- Interleaved2of5Symbology.WideToNarrowRatio
- 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()