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.
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.
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
- 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()