In This Article

Interleaved2of5Symbology Class

Represents a bar code symbology implementation for Interleaved 2 of 5.

public class Interleaved2of5Symbology : LinearBarCodeSymbology
Inheritance:
object Visual UIElement FrameworkElement BarCodeSymbology LinearBarCodeSymbology object

Remarks

Interleaved 2 of 5 is a linear symbology, that provides higher density than the Industrial 2 of 5 symbology that it is based on. It is most commonly used by the distribution and warehouse industry.

This symbology can encode numeric digits, and requires that an even number of digits (including the optional check digit) are encoded. This symbology implementation will automatically add a 0 at the start of the encoded value to ensure that an even number of digits are encoded.

The symbology's implementation auto-calculates and inserts an optional check digit if the IsChecksumEnabled property is true.

Constructors

Interleaved2of5Symbology()

Initializes an instance of the class.

public Interleaved2of5Symbology()

Properties

IsChecksumEnabled

Indicates whether the optional checksum should be added.

public bool IsChecksumEnabled { get; set; }

Property Value

bool:

true if the optional checksum should be added; 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

IsChecksumEnabledProperty

Defines the IsChecksumEnabled property.

public static readonly DependencyProperty IsChecksumEnabledProperty

Inherited Members

Extension Methods