zplCore.comzplCore.com

ComplianceRect

public readonly record struct ComplianceRect

Axis-aligned rectangle in printer dots (label coordinates, origin top left).

Constructors

SignatureDescription
# ComplianceRect(int X, int Y, int Width, int Height)Axis-aligned rectangle in printer dots (label coordinates, origin top left).

Properties

PropertyTypeDescription
Bottom { get; }int
Height { get; init; }int
IsEmpty { get; }bool
Right { get; }int
Width { get; init; }int
X { get; init; }int
Y { get; init; }int

Methods

Method SignatureReturnsDescription
# Contains(ComplianceRect o)boolTrue when o lies completely inside this rectangle.
# Deconstruct(out int X, out int Y, out int Width, out int Height)void
# Inflate(int dx, int dy)ComplianceRectGrown by dx left and right and dy top and bottom.
# Intersect(ComplianceRect o)ComplianceRectThe common area (empty when the rectangles do not intersect).
# Intersects(ComplianceRect o)boolTrue when both rectangles share at least one dot.
# Union(ComplianceRect o)ComplianceRectThe smallest rectangle containing both.