Skip to content

Line constructor

constructor · Line · cAlgo.API

DesktopCLICloud

Initializes a new instance of the Line 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 Line()
Line()

Examples

var line = new Line { X1 = 10, Y1 = 10, X2 = 200, Y2 = 10, StrokeColor = Color.Yellow, StrokeThickness = 2 };
var canvas = new Canvas();
canvas.AddChild(line);
Chart.AddControl(canvas);
line = Line()
line.X1 = 10
line.Y1 = 10
line.X2 = 200
line.Y2 = 10
line.StrokeColor = Color.Yellow
line.StrokeThickness = 2
canvas = Canvas()
canvas.AddChild(line)
api.Chart.AddControl(canvas)