PrinterFitIssue
public record PrinterFitIssueA reason why a label does not fit a printer.
Constructors
| Signature | Description |
|---|---|
# 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
| Property | Type | Description |
|---|---|---|
Code { get; init; } | string | Stable id, e.g. "ZT1201" (built-in) or the id of the profile's own rule. |
Element { get; init; } | ComplianceElement | The element that does not fit, if any. |
LabelIndex { get; init; } | int | 0-based label, -1 for the whole job. |
Message { get; init; } | string | What does not fit. |
Severity { get; init; } | ZplDiagnosticSeverity | Error fails LabelAssertions.FitsPrinter; warnings fail only with failOnWarnings. |
Methods
| Method Signature | Returns | Description |
|---|---|---|
# Deconstruct(out string Code, out string Message, out int LabelIndex, out ComplianceElement Element, out ZplDiagnosticSeverity Severity) | void |

