ControlBase.MinWidth
property · ControlBase · cAlgo.API
DesktopCLICloud
Gets or sets the minimum width 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 MinWidth {get; set;}
controlBase.MinWidth: float
Returns double — The minimum width.
Examples
var textBox = new TextBox { Text = "EURUSD", MinWidth = 100 };
Chart.AddControl(textBox);
Print("Minimum width: {0}", textBox.MinWidth);
textBox = TextBox()
textBox.Text = "EURUSD"
textBox.MinWidth = 100
api.Chart.AddControl(textBox)
api.Print(f"Minimum width: {textBox.MinWidth}")