Class Rectangle
Represents a rectangle shape.
Inherited Members
Namespace: nanoFramework.Presentation.Shapes
Assembly: nanoFramework.Graphics.dll
Syntax
public class Rectangle : Shape
Constructors
Rectangle()
Initializes a new instance of the Rectangle class.
Declaration
public Rectangle()
Rectangle(int, int)
Initializes a new instance of the Rectangle class with the specified width and height.
Declaration
public Rectangle(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
int | width | The width of the rectangle. |
int | height | The height of the rectangle. |
Methods
OnRender(DrawingContext)
Renders the Rectangle shape.
Declaration
public override void OnRender(DrawingContext dc)
Parameters
Type | Name | Description |
---|---|---|
DrawingContext | dc | The drawing context to use for rendering. |