CodabarSymbology Class
Represents a bar code symbology implementation for Codabar.
This symbology is also known as Ames Code, ANSI/AIM Codabar, Code 2 of 7, Monarch, NW-7, Rationalized Codabar, and USD-4.
public class CodabarSymbology : LinearBarCodeSymbology
- Inheritance:
- object Visual UIElement FrameworkElement BarCodeSymbology LinearBarCodeSymbology object
Remarks
Codabar is a linear symbology, developed in 1972 by Pitney Bowes, Inc. It is most commonly used by libraries, blood banks, and on FedEx airbills.
This symbology can encode 16 characters (0 through 9, and -$:/.+), along with 4 start/stop characters.
Each encoded value must start and stop with A, B, C, or D.
The AreStartStopCharactersVisible property determines whether these start/stop characters are included
in the DisplayValue.
This symbology is self-checking, so no checksum or check digit is required.
Constructors
CodabarSymbology()
Initializes an instance of the class.
public CodabarSymbology()
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. |
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