Skip to main content

RectangleF Struct

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

A floating-point rectangle defined by upper-left corner (X,Y) and size (Width,Height).

public struct RectangleF

Constructors

RectangleF(float x, float y, float width, float height)

public RectangleF(float x, float y, float width, float height)

Initializes a new rectangle with the given location and size.

Properties

X

public float X { get; set; }

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

Y

public float Y { get; set; }

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

Width

public float Width { get; set; }

Gets or sets the width of the rectangle.

Height

public float Height { get; set; }

Gets or sets the height of the rectangle.