Code93Symbology Class
Represents a bar code symbology implementation for Code 93.
public class Code93Symbology : LinearBarCodeSymbology
- Inheritance:
- object Visual UIElement FrameworkElement BarCodeSymbology LinearBarCodeSymbology object
- Derived:
- Code93ExtendedSymbology
Remarks
Code 93 is a linear symbology, designed in 1982 by Intermec to provide a higher density and data security enhancement to Code 39. Each Code 93 character is divided into nine modules and always has three bars and three spaces. This symbology is primarily used by the Canadian postal office.
This symbology can encode numbers, uppercase letters, and -. $/+% characters.
Each encoded value must start and stop with *, which is automatically inserted.
The AreStartStopCharactersVisible property determines whether these start/stop characters are included
in the DisplayValue.
This symbology implementation auto-calculates and inserts two check characters.
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:
trueif the start/stop characters (*) are visible in the displayed value; otherwise,false. The default value isfalse.
Methods
OnValueChanged(string?, string?)
Occurs when the value of the Value property is changed.
protected override void OnValueChanged(string? oldValue, string? newValue)
| Parameter | Type | Description |
|---|---|---|
| oldValue | string | The old value. |
| newValue | string | The new value. |
PreprocessCharacter(char)
Pre-processes the specified character and expands it if necessary.
protected virtual string PreprocessCharacter(char ch)
| Parameter | Type | Description |
|---|---|---|
| ch | char | The character to examine. |
Returns
- string:
The pre-processing result.
ValidateValue(string?)
Validates that the symbology can parse the specified value.
public override ValidationResult ValidateValue(string? value)
| Parameter | Type | Description |
|---|---|---|
| value | string | The value to validate. |
Returns
- ValidationResult:
A ValidationResult containing the result of the validation.
Fields
AreStartStopCharactersVisibleProperty
Defines the AreStartStopCharactersVisible property.
public static readonly DependencyProperty AreStartStopCharactersVisibleProperty
Inherited Members
- LinearBarCodeSymbology.BarDataProperty
- LinearBarCodeSymbology.BarHeightProperty
- LinearBarCodeSymbology.BarWidthRatioProperty
- LinearBarCodeSymbology.DisplayValueProperty
- LinearBarCodeSymbology.InstructionsProperty
- LinearBarCodeSymbology.MinBarHeightWidthRatioProperty
- LinearBarCodeSymbology.QuietZoneThicknessProperty
- LinearBarCodeSymbology.ValueDisplayStyleProperty
- LinearBarCodeSymbology.ValueIntrusionOffsetProperty
- LinearBarCodeSymbology.MeasureOverride(Size)
- LinearBarCodeSymbology.Render(DrawingContext, Point, Size)
- LinearBarCodeSymbology.BarData
- LinearBarCodeSymbology.BarHeight
- LinearBarCodeSymbology.BarWidthRatio
- LinearBarCodeSymbology.DisplayValue
- LinearBarCodeSymbology.Instructions
- LinearBarCodeSymbology.MinBarHeightWidthRatio
- LinearBarCodeSymbology.QuietZoneThickness
- LinearBarCodeSymbology.ValueDisplayStyle
- LinearBarCodeSymbology.ValueIntrusionOffset
- BarCodeSymbology.BackgroundProperty
- BarCodeSymbology.ForegroundProperty
- BarCodeSymbology.ValueProperty
- BarCodeSymbology.MeasureDesiredSize(Size)
- BarCodeSymbology.OnRender(DrawingContext)
- BarCodeSymbology.ToBitmap(double, double)
- BarCodeSymbology.Background
- BarCodeSymbology.DisplayName
- BarCodeSymbology.Foreground
- BarCodeSymbology.Value