Skip to content

Line.Y2

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 Y2 {get; set;}
line.Y2: float

Returns double

Examples

var line = new Line { X1 = 100, Y1 = 20, X2 = 100, Y2 = 300, StrokeColor = Color.Gray };
line.Y2 = Chart.Height / 2;
Chart.AddControl(line);
Print("Line ends at y: {0}", line.Y2);
line = Line()
line.X1 = 100
line.Y1 = 20
line.X2 = 100
line.Y2 = api.Chart.Height / 2
line.StrokeColor = Color.Gray
api.Chart.AddControl(line)
api.Print(f"Line ends at y: {line.Y2}")