ControlBase.Left
property · ControlBase · cAlgo.API
DesktopCLICloud
Gets or sets the position of the chart control to the left side of the chart area. Works only when the control is inside the Canvas panel.
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 Left {get; set;}
controlBase.Left: float
Returns double — The left.
Examples
var canvas = new Canvas();
var textBlock = new TextBlock { Text = "EURUSD", Left = 20, Top = 30 };
canvas.AddChild(textBlock);
Chart.AddControl(canvas);
Print("Left: {0}", textBlock.Left);
canvas = Canvas()
textBlock = TextBlock()
textBlock.Text = "EURUSD"
textBlock.Left = 20
textBlock.Top = 30
canvas.AddChild(textBlock)
api.Chart.AddControl(canvas)
api.Print(f"Left: {textBlock.Left}")