Skip to main content

Rectangle Struct

NuGet: GHIElectronics.TinyCLR.Drawing
Assembly: GHIElectronics.TinyCLR.Drawing
Namespace: System.Drawing

An integer rectangle defined by upper-left corner (X,Y) and size (Width,Height).

public struct Rectangle

Constructors

Rectangle(int x, int y, int width, int height)

public Rectangle(int x, int y, int width, int height)

Initializes a new rectangle with the given location and size.

Properties

X

public int X { get; set; }

Gets or sets the x-coordinate of the upper-left corner.

Y

public int Y { get; set; }

Gets or sets the y-coordinate of the upper-left corner.

Width

public int Width { get; set; }

Gets or sets the width of the rectangle.

Height

public int Height { get; set; }

Gets or sets the height of the rectangle.