In This Article

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 is false.

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

Extension Methods