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
.
For detailed documentation on this symbology's features and how to use them, please see the Interleaved 2 of 5 documentation topic.
Constructors
Interleaved2of5Symbology()
Initializes an instance of the Interleaved2of5Symbology
class.
public Interleaved2of5Symbology()
Properties
IsChecksumEnabled
Gets or sets 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 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
IsChecksumEnabledProperty
Identifies the IsChecksumEnabled dependency property. This field is read-only.
public static readonly DependencyProperty IsChecksumEnabledProperty
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