ComplianceBarcode
public sealed class ComplianceBarcode : ComplianceElementA barcode with geometry measured on the rendered label.
Properties
| Property | Type | Description |
|---|---|---|
BarHeightDots { get; } | int | Bar height in dots (linear codes: scan lines that cross the complete symbol); 0 for 2D. |
BarHeightMm { get; } | double | |
Data { get; } | string | Data as the scanner transmits it: Code 128 invocation codes resolved (FNC1 as GS U+001D, a leading FNC1 removed), QR / Data Matrix mode prefixes and escapes removed. |
Gs1 { get; } | Gs1Result | Parsed and validated GS1 element strings when ComplianceBarcode.IsGs1 (null otherwise). |
InterpretationAbove { get; } | bool | The interpretation line is printed above the bars (^BC g = Y). |
InterpretationBounds { get; } | ComplianceRect | Area of the printed interpretation line (empty when none was found). |
InterpretationCharHeightDots { get; } | int | Character height of the interpretation line in dots (measured like ComplianceText.CharHeightDots). |
InterpretationCharHeightMm { get; } | double | |
InterpretationLine { get; } | bool | The command asks for a printed interpretation line (e.g. ^BC f = Y, the default). |
InterpretationText { get; } | string | Text the printer prints as interpretation line (data without invocation codes; ^BC mode D: the field data as written, without spaces). |
Is2D { get; } | bool | True for matrix and stacked symbologies (QR, Data Matrix, Aztec, MaxiCode, PDF417 …). |
IsGs1 { get; } | bool | The symbol carries GS1 element strings (FNC1 in first position: GS1-128, GS1 DataMatrix, GS1 QR Code). |
IsLinear { get; } | bool | True for single-row 1D symbologies (bars measured per scan line). |
ModuleDots { get; } | int | Narrowest bar or space (linear) or module (2D) measured in dots; 0 when it could not be measured. |
SymbolBounds { get; } | ComplianceRect | Area of the symbol itself in dots: for linear codes the bars (first to last bar, over the full-height scan lines, without interpretation line and quiet zones); for 2D codes the inked symbol area. |
Symbology { get; } | ComplianceSymbology | |
XDimensionMm { get; } | double | X-dimension in mm (ComplianceBarcode.ModuleDots at the label resolution). |
Methods
| Method Signature | Returns | Description |
|---|---|---|
# Ai(string ai) | string | Value of the first GS1 element with this AI, or null. |
# QuietZones(int dots) | (ComplianceRect, ComplianceRect) | Light areas before and after the symbol along the scan direction, each dots wide (left/right of the bars for N and I, above/below for R and B). Parts outside the label are kept, so callers can see them. |

