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