GS1128Symbology Class
Represents a barcode symbology implementation for GS1-128 (formerly known as UCC/EAN-128).
public class GS1128Symbology : Code128Symbology
- Inheritance:
- object ObservableObjectBase BarcodeSymbologyBase LinearBarcodeSymbologyBase Code128Symbology object
Remarks
GS1-128 is an application standard of Code 128 defined by GS1. It uses the Code 128 barcode specification with the addition of a mandatory FNC1 character immediately after the start character, which identifies the barcode as GS1-128.
GS1-128 encodes data using Application Identifiers (AIs) that define the type and format of the data that follows. Common AIs include:
- AI (01) — GTIN (Global Trade Item Number), 14 digits.
- AI (10) — Batch/lot number, variable length up to 20 characters.
- AI (17) — Expiration date, 6 digits (YYMMDD).
- AI (21) — Serial number, variable length up to 20 characters.
- AI (3100)–(3169) — Net weight in various units.
The value should be specified using parenthetical AI notation, such as (01)09521234543213(17)250101(10)ABC123.
The parentheses are not encoded into the barcode but are used to identify the Application Identifiers and their data.
FNC1 characters are automatically inserted as separators between variable-length AI data fields where required. Fixed-length AIs do not need FNC1 separators since the scanner knows when the data ends based on the AI's defined length.
The value can also be specified in raw format using the ASCII Group Separator character (GS, U+001D) as
the FNC1 field separator. Raw format is suitable for programmatic use where the caller manages AI structure directly.
Constructors
GS1128Symbology()
Initializes an instance of the class.
public GS1128Symbology()
Properties
ExampleValue
An example value that is valid for the symbology.
Name
The name of the symbology.
Methods
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
- Code128Symbology.CreateRenderData(BarcodeEncodingRequest)
- 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()