Skip to content

Polygon constructor

constructor · Polygon · cAlgo.API

DesktopCLICloud

Initializes a new instance of the Polygon class.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public Polygon()
Polygon()

Examples

var polygon = new Polygon { FillColor = Color.SteelBlue, StrokeColor = Color.White };
polygon.Points = new[] { new Point(0, 0), new Point(100, 0), new Point(50, 80) };
Chart.AddControl(polygon);
polygon = Polygon()
polygon.FillColor = Color.SteelBlue
polygon.StrokeColor = Color.White
polygon.Points = [Point(0, 0), Point(100, 0), Point(50, 80)]
api.Chart.AddControl(polygon)