public readonly record struct ComplianceRect
Axis-aligned rectangle in printer dots (label coordinates, origin top left).
Constructors
| Signature | Description |
# ComplianceRect(int X, int Y, int Width, int Height) | Axis-aligned rectangle in printer dots (label coordinates, origin top left). |
Properties
| Property | Type | Description |
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 Signature | Returns | Description |
# Contains(ComplianceRect o) | bool | True 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) | ComplianceRect | Grown by dx left and right and dy top and bottom. |
# Intersect(ComplianceRect o) | ComplianceRect | The common area (empty when the rectangles do not intersect). |
# Intersects(ComplianceRect o) | bool | True when both rectangles share at least one dot. |
# Union(ComplianceRect o) | ComplianceRect | The smallest rectangle containing both. |