Table of Contents

Class Polygon

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

Represents a polygon shape.

public class Polygon : Shape
Inheritance
Polygon
Inherited Members
Extension Methods

Constructors

Polygon()

Initializes a new instance of the Polygon class.

public Polygon()

Polygon(int[])

Initializes a new instance of the Polygon class with the specified points.

public Polygon(int[] pts)

Parameters

pts int[]

The points of the polygon.

Properties

Points

Gets or sets the points of the polygon.

public int[] Points { get; set; }

Property Value

int[]

Methods

OnRender(DrawingContext)

Renders the polygon on the specified drawing context.

public override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext

The drawing context.