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
Methods
OnRender(DrawingContext)
Renders the Rectangle shape.
public override void OnRender(DrawingContext dc)
Parameters
dc
DrawingContextThe drawing context to use for rendering.