Code128Symbology Class
Represents a bar code symbology implementation for Code 128.
public class Code128Symbology : LinearBarCodeSymbology
- Inheritance:
- object Visual UIElement FrameworkElement BarCodeSymbology LinearBarCodeSymbology object
Remarks
Code 128 is a high-density barcode symbology, used extensively worldwide in shipping and packaging industries.
This symbology can encode all of the lower 128 ASCII characters. It is especially efficient when encoding sequential numbers since they are merged into a single output character width.
This symbology implementation auto-calculates and inserts a check character.
Constructors
Code128Symbology()
Initializes an instance of the class.
public Code128Symbology()
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
Fnc1Char
The character that can be used to encode FNC1.
public const char Fnc1Char = '\u0080'
Fnc2Char
The character that can be used to encode FNC2.
public const char Fnc2Char = '\u0081'
Fnc3Char
The character that can be used to encode FNC3.
public const char Fnc3Char = '\u0082'
Fnc4Char
The character that can be used to encode FNC4.
public const char Fnc4Char = '\u0083'
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