In This Article

Code128Symbology Class

Represents a barcode symbology implementation for Code 128.

public class Code128Symbology : LinearBarcodeSymbologyBase
Inheritance:
object ObservableObjectBase BarcodeSymbologyBase LinearBarcodeSymbologyBase object
Derived:
GS1128Symbology

Remarks

This symbology is also known as USS Code 128, ISBT 128, and GS1-128.

Code 128 is a high-density linear symbology that supports all 128 ASCII characters. It is one of the most widely used symbologies in logistics, shipping, and supply chain management due to its compact size, high data density, and built-in error detection.

Code 128 uses three code sets to efficiently encode different character subsets:

  • Code Set A — ASCII characters 0–95, which includes control characters (0–31), digits, uppercase letters, and common punctuation.
  • Code Set B — ASCII characters 32–127, which includes digits, uppercase and lowercase letters, and common punctuation.
  • Code Set C — Pairs of digits (00–99), enabling double-density encoding of numeric data.

The symbology automatically selects the optimal code set for each segment of the value to produce the most compact barcode possible.

A mandatory modulo-103 check character is automatically calculated and inserted before the stop pattern.

Constructors

Code128Symbology()

Initializes an instance of the class.

public Code128Symbology()

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