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, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- Object DispatcherObject DependencyObject 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.
For detailed documentation on this symbology's features and how to use them, please see the Codabar documentation topic.
Constructors
CodabarSymbology()
Initializes an instance of the CodabarSymbology
class.
public CodabarSymbology()
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. |
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()