Skip to main content

PixelSize Methods

Methods

Equals(Object)Checks for equality between a size and an object.
(Overrides ValueType.Equals(Object))
Equals(PixelSize)Returns a boolean indicating whether the size is equal to the other given size.
FromSize(Size, Vector)Converts a Size to device pixels using the specified scaling factor.
FromSize(Size, Double)Converts a Size to device pixels using the specified scaling factor.
FromSizeWithDpi(Size, Vector)Converts a Size to device pixels using the specified dots per inch (DPI).
FromSizeWithDpi(Size, Double)Converts a Size to device pixels using the specified dots per inch (DPI).
GetHashCode()Returns a hash code for a PixelSize.
(Overrides ValueType.GetHashCode())
GetType()Gets the Type of the current instance.
(Inherited from Object)
Parse(String)Parses a PixelSize string.
ToSize(Double)Converts the PixelSize to a device-independent Size using the specified scaling factor.
ToSize(Vector)Converts the PixelSize to a device-independent Size using the specified scaling factor.
ToSizeWithDpi(Double)Converts the PixelSize to a device-independent Size using the specified dots per inch (DPI).
ToSizeWithDpi(Vector)Converts the PixelSize to a device-independent Size using the specified dots per inch (DPI).
ToString()Returns the string representation of the size.
(Overrides ValueType.ToString())
TryParse(String, PixelSize)Try parsing source as PixelSize.
WithHeight(Int32)Returns a new PixelSize with the same width and the specified height.
WithWidth(Int32)Returns a new PixelSize with the same height and the specified width.

See Also

Reference

PixelSize Structure
Avalonia Namespace