ControlBase.Right
property · ControlBase · cAlgo.API
DesktopCLICloud
Gets or sets the position of the chart control to the rignt 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 Right {get; set;}
controlBase.Right: float
Returns double — The right.
Examples
var canvas = new Canvas();
var textBlock = new TextBlock { Text = "Balance", Right = 20, Top = 20 };
canvas.AddChild(textBlock);
Chart.AddControl(canvas);
Print("Right: {0}", textBlock.Right);
canvas = Canvas()
textBlock = TextBlock()
textBlock.Text = "Balance"
textBlock.Right = 20
textBlock.Top = 20
canvas.AddChild(textBlock)
api.Chart.AddControl(canvas)
api.Print(f"Right: {textBlock.Right}")