Skip to content

Line.X1

property · Line · cAlgo.API

DesktopCLICloud

Gets or sets x-axis point 1 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 X1 {get; set;}
line.X1: float

Returns double

Examples

var line = new Line { X1 = 20, Y1 = 50, X2 = 220, Y2 = 50, StrokeColor = Color.Red };
Chart.AddControl(line);
Print("Line starts at x: {0}", line.X1);
line = Line()
line.X1 = 20
line.Y1 = 50
line.X2 = 220
line.Y2 = 50
line.StrokeColor = Color.Red
api.Chart.AddControl(line)
api.Print(f"Line starts at x: {line.X1}")