49 public override bool Equals(
object? obj)
56 if (ReferenceEquals(
this, obj))
93 return Formatting.Invariant(
94 $
"{GetType().Name}{{ {nameof(Width)} = {Width}, {nameof(Height)} = {Height} }}");
121 public Size(uint width, uint height)
122 : base(width, height)
157 public SizeF(
float width,
float height)
158 : base(width, height)
Represents a size with generic width and height values.
T Width
Gets the width of the size.
T Height
Gets the height of the size.
SizeT< T > Transposed()
Returns a transposed size with width and height swapped.
override int GetHashCode()
Returns a hash code for the current size.
override bool Equals(object? obj)
Determines whether the specified object is equal to the current SizeT<T>.
SizeT(T width, T height)
Initializes a new instance of the SizeT<T> class with specified width and height.
override string ToString()
Returns a string representation of the size.
Represents a size with floating-point width and height values.
SizeF()
Initializes a new instance of the SizeF class with default values (0.0f, 0.0f).
SizeF(float width, float height)
Initializes a new instance of the SizeF class with specified floating-point width and height.
Represents a size with integer width and height values.
Size(uint width, uint height)
Initializes a new instance of the Size class with specified integer width and height.
Size()
Initializes a new instance of the Size class with default values (0, 0).