Skip to main content

Rectangle Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Shapes

Draws a rectangle.

public class Rectangle : Shape

Constructors

Rectangle()

public Rectangle()

Creates a rectangle with no size.

Rectangle(int width, int height)

public Rectangle(int width, int height)

Creates a rectangle of the given width and height.

Methods

OnRender(Media.DrawingContext dc)

public override void OnRender(Media.DrawingContext dc)

Renders the rectangle to the drawing context.