zplCore.comzplCore.com

ComplianceElement

public class ComplianceElement

One field of a rendered label as the compliance rules see it: what was drawn (ComplianceElement.Bounds in dots, from the renderer's element trace) and where it came from in the ZPL (ComplianceElement.Offset, ComplianceElement.Line).

Properties

PropertyTypeDescription
Arguments { get; }IReadOnlyList<string>Arguments of the element command (^BC → orientation, height, …), split at the delimiter.
Bounds { get; }ComplianceRectArea of the element on the label in dots (as traced by the renderer).
Column { get; }int
Command { get; }stringCommand that drew the element, with prefix: "^BC", "^A0", "^GB", "^FD" (text without ^A) …
Content { get; }stringField data after ^FH, ^FN, ^SN and ^FC processing (for shapes: their parameters).
FieldCommands { get; }IReadOnlyList<ZplCommand>All commands of the field block (^FO … ^FS) with their source offsets.
InkRects { get; }IReadOnlyList<ComplianceRect>Rectangles that actually carry ink: the four sides of an outlined ^GB box, otherwise ComplianceElement.Bounds (used for overlap checks, so a frame around a barcode does not count as overlapping it).
Kind { get; }ComplianceElementKind
Length { get; }intLength of the field's source block up to and including ^FS.
Line { get; }int
Offset { get; }intCharacter offset of the field's first command in the ZPL (-1 when unknown).
Orientation { get; }charN, R, I or B.
Reverse { get; }boolPrinted white on black (^FR / ^LR).

Methods

Method SignatureReturnsDescription
# Arg(int i)stringArgument i trimmed, or "" when omitted.
# ToString()string