Class Polygon
Represents a polygon shape.
Inherited Members
Namespace: nanoFramework.Presentation.Shapes
Assembly: nanoFramework.Graphics.dll
Syntax
public class Polygon : Shape
Constructors
Polygon()
Initializes a new instance of the Polygon class.
Declaration
public Polygon()
Polygon(int[])
Initializes a new instance of the Polygon class with the specified points.
Declaration
public Polygon(int[] pts)
Parameters
Type | Name | Description |
---|---|---|
int[] | pts | The points of the polygon. |
Properties
Points
Gets or sets the points of the polygon.
Declaration
public int[] Points { get; set; }
Property Value
Type | Description |
---|---|
int[] |
Methods
OnRender(DrawingContext)
Renders the polygon on the specified drawing context.
Declaration
public override void OnRender(DrawingContext dc)
Parameters
Type | Name | Description |
---|---|---|
DrawingContext | dc | The drawing context. |