Skip to main content

Struct Size

Represents a 2d size

Assembly: MicroGraphics.dll
View Source
public struct Size

Properties

Width

The width

View Source
public int Width { readonly get; set; }

Height

The height

View Source
public int Height { readonly get; set; }

IsEmpty

Is the size empty / zero

View Source
public bool IsEmpty { get; }

Empty

Get an empty / zero size

View Source
public static Size Empty { get; }

Methods

From(Point)

Get a size from a point

View Source
public static Size From(Point point)
Returns

Meadow.Foundation.Graphics.Size: A new Size struct

Parameters
TypeNameDescription
Meadow.Foundation.Graphics.PointpointThe point

Equals(object)

Indicates whether this instance is equal to the specified object

View Source
public override bool Equals(object obj)
Returns

System.Boolean: True if both instances are equal, false otherwise

Parameters
TypeNameDescription
System.ObjectobjThe object instance to compare to

GetHashCode()

Returns the hash code for this instance

View Source
public override int GetHashCode()
Returns

System.Int32: An int that represents the hash code for this instance### ToString() Get a string representation of the Size

View Source
public override string ToString()
Returns

System.String: A string with the Width and Height