Table of Contents

Class Rectangle

Namespace
nanoFramework.Presentation.Shapes
Assembly
nanoFramework.Graphics.dll

Represents a rectangle shape.

public class Rectangle : Shape
Inheritance
Rectangle
Inherited Members
Extension Methods

Constructors

Rectangle()

Initializes a new instance of the Rectangle class.

public Rectangle()

Rectangle(int, int)

Initializes a new instance of the Rectangle class with the specified width and height.

public Rectangle(int width, int height)

Parameters

width int

The width of the rectangle.

height int

The height of the rectangle.

Methods

OnRender(DrawingContext)

Renders the Rectangle shape.

public override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext

The drawing context to use for rendering.