public abstract class ElementAssertions<TSelf, TElement>
Assertions shared by text and barcode elements: position and layout. When the element could not be selected (inside a ZplAssertionScope) every further assertion is skipped.
Properties
| Property | Type | Description |
And { get; } | LabelAssertions | Back to the label for more assertions. |
Element { get; } | TElement | The selected element (null when the selection failed inside a scope). |
Methods
| Method Signature | Returns | Description |
# DoesNotOverlap(string other) | TSelf | The element's ink does not overlap any element matched by other (text content or barcode selector). |
# DoesNotOverlapAnything() | TSelf | The element's ink does not overlap any other element. |
# IsAbove(string other) | TSelf | The element ends above the top of every element matched by other. |
# IsAt(double xMm, double yMm, double toleranceMm = 0.5) | TSelf | The element's top-left corner is at (xMm, yMm) ± toleranceMm. |
# IsBelow(string other) | TSelf | The element starts below the bottom of every element matched by other. |
# IsInside(double xMm, double yMm, double widthMm, double heightMm) | TSelf | The element lies completely inside the area (mm from the top-left label corner). |
# IsWithinLabel(double marginMm = 0) | TSelf | The element lies completely on the label, at least marginMm from every edge. |