Struct Size
Represents a size with width and height. Used for viewport and element dimensions.
public readonly record struct Size : IEquatable<Size>
- Implements
- Inherited Members
Constructors
Size(double, double)
Represents a size with width and height. Used for viewport and element dimensions.
public Size(double Width, double Height)
Parameters
Properties
Empty
Gets an empty size (0x0).
public static Size Empty { get; }
Property Value
Height
The height.
public double Height { get; init; }
Property Value
IsEmpty
Gets whether the size is empty (either dimension is zero or negative).
public bool IsEmpty { get; }
Property Value
Width
The width.
public double Width { get; init; }
Property Value
Methods
FromWidthHeight(double, double)
Creates a size from width and height values.
public static Size FromWidthHeight(double width, double height)