zplCore.comzplCore.com

PrinterFitIssue

public record PrinterFitIssue

A reason why a label does not fit a printer.

Constructors

SignatureDescription
# PrinterFitIssue(string Code, string Message, int LabelIndex = -1, ComplianceElement? Element = default, ZplDiagnosticSeverity Severity = ZplDiagnosticSeverity.Error)A reason why a label does not fit a printer. Code: Stable id, e.g. "ZT1201" (built-in) or the id of the profile's own rule. · Message: What does not fit. · LabelIndex: 0-based label, -1 for the whole job. · Element: The element that does not fit, if any. · Severity: Error fails LabelAssertions.FitsPrinter; warnings fail only with failOnWarnings.

Properties

PropertyTypeDescription
Code { get; init; }stringStable id, e.g. "ZT1201" (built-in) or the id of the profile's own rule.
Element { get; init; }ComplianceElementThe element that does not fit, if any.
LabelIndex { get; init; }int0-based label, -1 for the whole job.
Message { get; init; }stringWhat does not fit.
Severity { get; init; }ZplDiagnosticSeverityError fails LabelAssertions.FitsPrinter; warnings fail only with failOnWarnings.

Methods

Method SignatureReturnsDescription
# Deconstruct(out string Code, out string Message, out int LabelIndex, out ComplianceElement Element, out ZplDiagnosticSeverity Severity)void