Line.Y1
property · Line · cAlgo.API
DesktopCLICloud
Gets or sets the y-axis point 2 data.
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 double Y1 {get; set;}
line.Y1: float
Returns double
Examples
var line = new Line { X1 = 50, Y1 = 20, X2 = 50, Y2 = 220, StrokeColor = Color.Red };
Chart.AddControl(line);
Print("Line starts at y: {0}", line.Y1);
line = Line()
line.X1 = 50
line.Y1 = 20
line.X2 = 50
line.Y2 = 220
line.StrokeColor = Color.Red
api.Chart.AddControl(line)
api.Print(f"Line starts at y: {line.Y1}")