In This Article

Code93Symbology Class

Represents a barcode symbology implementation for Code 93.

public class Code93Symbology : LinearBarcodeSymbologyBase
Inheritance:
object ObservableObjectBase BarcodeSymbologyBase LinearBarcodeSymbologyBase object
Derived:
Code93ExtendedSymbology

Remarks

This symbology is also known as USS-93 and Code 93A.

Code 93 is a linear symbology that was designed as a more compact and secure alternative to Code 39. Each character encoded is made up of 9 modules consisting of 3 bars and 3 spaces, with each bar or space being 1 to 4 modules wide.

This symbology can encode numbers, uppercase letters, and -$% ./+ characters, as well as four special shift characters used internally for extended encoding.

Each encoded value must start and stop with special start/stop patterns, which are automatically inserted. The AreStartStopCharactersVisible property determines whether these start/stop characters (*) are included in the displayed value.

Unlike Code 39, Code 93 requires two mandatory check characters (C and K) that are automatically calculated and inserted. These check characters are based on a modulo-47 weighted checksum calculation.

An extended implementation of Code 93 is available in Code93ExtendedSymbology. That implementation allows for all lower 128 ASCII characters to be encoded based on the core Code 93 concepts.

Constructors

Code93Symbology()

Initializes an instance of the class.

public Code93Symbology()

Properties

AreStartStopCharactersVisible

Indicates whether the start/stop characters (*) are visible in the displayed value.

public bool AreStartStopCharactersVisible { get; set; }

Property Value

bool:

The default value is false.

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.

PreprocessCharacter(char)

Preprocesses a raw input value character before encoding, such as converting lowercase to uppercase, escaping characters, etc.

protected virtual string PreprocessCharacter(char ch)
Parameter Type Description
ch char

A raw input value character.

Returns

string:

The preprocessed string value to encode.

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