Skip to main content

Size Methods

Methods

Constrain(Size)Constrains the size.
Deconstruct(Double, Double)Deconstructs the size into its Width and Height values.
Deflate(Thickness)Deflates the size by a Thickness.
Equals(Object)Checks for equality between a size and an object.
(Overrides ValueType.Equals(Object))
Equals(Size)Returns a boolean indicating whether the size is equal to the other given size (bitwise).
GetHashCode()Returns a hash code for a Size.
(Overrides ValueType.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
Inflate(Thickness)Inflates the size by a Thickness.
NearlyEquals(Size)Returns a boolean indicating whether the size is equal to the other given size (numerically).
Parse(String)Parses a Size string.
ToString()Returns the string representation of the size.
(Overrides ValueType.ToString())
WithHeight(Double)Returns a new Size with the same width and the specified height.
WithWidth(Double)Returns a new Size with the same height and the specified width.

See Also

Reference

Size Structure
Avalonia Namespace