zplCore.comzplCore.com

ComplianceBarcode

public sealed class ComplianceBarcode : ComplianceElement

A barcode with geometry measured on the rendered label.

Properties

PropertyTypeDescription
BarHeightDots { get; }intBar height in dots (linear codes: scan lines that cross the complete symbol); 0 for 2D.
BarHeightMm { get; }double
Data { get; }stringData 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; }Gs1ResultParsed and validated GS1 element strings when ComplianceBarcode.IsGs1 (null otherwise).
InterpretationAbove { get; }boolThe interpretation line is printed above the bars (^BC g = Y).
InterpretationBounds { get; }ComplianceRectArea of the printed interpretation line (empty when none was found).
InterpretationCharHeightDots { get; }intCharacter height of the interpretation line in dots (measured like ComplianceText.CharHeightDots).
InterpretationCharHeightMm { get; }double
InterpretationLine { get; }boolThe command asks for a printed interpretation line (e.g. ^BC f = Y, the default).
InterpretationText { get; }stringText the printer prints as interpretation line (data without invocation codes; ^BC mode D: the field data as written, without spaces).
Is2D { get; }boolTrue for matrix and stacked symbologies (QR, Data Matrix, Aztec, MaxiCode, PDF417 …).
IsGs1 { get; }boolThe symbol carries GS1 element strings (FNC1 in first position: GS1-128, GS1 DataMatrix, GS1 QR Code).
IsLinear { get; }boolTrue for single-row 1D symbologies (bars measured per scan line).
ModuleDots { get; }intNarrowest bar or space (linear) or module (2D) measured in dots; 0 when it could not be measured.
SymbolBounds { get; }ComplianceRectArea 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; }doubleX-dimension in mm (ComplianceBarcode.ModuleDots at the label resolution).

Methods

Method SignatureReturnsDescription
# Ai(string ai)stringValue 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.