Code93Symbology Class
Represents a bar code symbology implementation for Code 93
.
public class Code93Symbology : LinearBarCodeSymbology, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- Object DispatcherObject DependencyObject 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.
For detailed documentation on this symbology's features and how to use them, please see the Code 93 documentation topic.
Constructors
Code93Symbology()
Initializes an instance of the Code93Symbology
class.
public Code93Symbology()
Properties
AreStartStopCharactersVisible
Gets or sets whether the start/stop characters (*) are visible in the displayed value.
public bool AreStartStopCharactersVisible { get; set; }
Property Value
- Boolean:
true
if 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
Identifies the AreStartStopCharactersVisible dependency property. This field is read-only.
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
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()