CheckBox constructor
constructor · CheckBox · cAlgo.API
DesktopCLICloud
Initializes a new instance of the checkbox class.
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 CheckBox()
CheckBox()
Examples
var checkBox = new CheckBox { Text = "Use trailing stop", IsChecked = true, Margin = 5 };
Chart.AddControl(checkBox);
checkBox = CheckBox()
checkBox.Text = "Use trailing stop"
checkBox.IsChecked = True
checkBox.Margin = Thickness(5)
api.Chart.AddControl(checkBox)