Polyline constructor
constructor · Polyline · cAlgo.API
DesktopCLICloud
Initializes a new instance of the Polyline 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 Polyline()
Polyline()
Examples
var polyline = new Polyline { StrokeColor = Color.Cyan, StrokeThickness = 2 };
polyline.Points = new[] { new Point(0, 80), new Point(40, 20), new Point(80, 60), new Point(120, 0) };
Chart.AddControl(polyline);
polyline = Polyline()
polyline.StrokeColor = Color.Cyan
polyline.StrokeThickness = 2
polyline.Points = [Point(0, 80), Point(40, 20), Point(80, 60), Point(120, 0)]
api.Chart.AddControl(polyline)