Size
A width and height pair used by the measure/arrange layout.
- Kind: Record struct
- Namespace: SkeleKit
- Implements:
IEquatable<Size>
Constructors
Initializes a new instance of the Size struct.
Properties
Height
The vertical extent.
Type: double
IsFinite
True when both axes are finite (neither infinite nor NaN).
Type: bool
Width
The horizontal extent.
Type: double
Methods
Deflate
Returns this size shrunk by thickness on both axes, clamped at zero.
| Parameter | Summary |
|---|---|
Thickness thickness | The margins or padding to subtract. |
Returns
Size: The deflated size.
Inflate
Returns this size grown by thickness on both axes.
| Parameter | Summary |
|---|---|
Thickness thickness | The margins or padding to add. |
Returns
Size: The inflated size.
Fields
Infinity
A size unconstrained on both axes, used when measuring content that may grow without bound.
Type: Size
Zero
A size of zero width and height.
Type: Size