Skip to content

ControlBase.MinHeight

property · ControlBase · cAlgo.API

DesktopCLICloud

Gets or sets the minimum height of the chart control.

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

Returns double — The minimum height.

Examples

var button = new Button { Text = "Sell", MinHeight = 30 };
Chart.AddControl(button);
Print("Minimum height: {0}", button.MinHeight);
button = Button()
button.Text = "Sell"
button.MinHeight = 30
api.Chart.AddControl(button)
api.Print(f"Minimum height: {button.MinHeight}")