zplCore.comzplCore.com

ComplianceOptions

public sealed class ComplianceOptions

Settings of a compliance pre-check.

Constructors

SignatureDescription
# ComplianceOptions()

Properties

PropertyTypeDescription
DefaultLabelHeightMm { get; set; }doubleLabel height in mm used when the ZPL has no ^LL (default 6 in = 152.4 mm).
DefaultLabelWidthMm { get; set; }doubleLabel width in mm used when the ZPL has no ^PW (default 4 in = 101.6 mm).
DisabledRules { get; }ISet<string>Rule ids that are not run (e.g. "ZPL3112").
Dpi { get; set; }intPrint resolution in dpi (ZPL does not carry it; default 203). All millimetre values (X-dimension, bar height, text size, label size) are computed with it, so set the resolution of the target printer.
FieldValues { get; set; }IReadOnlyDictionary<int, string>Values for ^FN fields (like ZplRenderSettings.FieldValues), e.g. to check a template with real data.
IncludeAdvisory { get; set; }boolReport advisory findings (recommendations, unverified values). Default true.
MinimumSeverity { get; set; }ComplianceSeverityFindings below this severity are dropped (default ComplianceSeverity.Info: keep all).
SeverityOverrides { get; }IDictionary<string, ComplianceSeverity>Per-rule severity overrides (rule id → severity).