CheckBox.IsThreeState
property · CheckBox · cAlgo.API
DesktopCLICloud
Checks if the checkbox may be of three states - checked, unchecked and indeterminate.
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 bool IsThreeState {get; set;}
checkBox.IsThreeState: bool
Returns bool
Examples
var checkBox = new CheckBox { Text = "Hedge mode", IsThreeState = true, IsChecked = null };
checkBox.Indeterminate += args => Print("Hedge mode is undecided");
Chart.AddControl(checkBox);
checkBox = CheckBox()
checkBox.Text = "Hedge mode"
checkBox.IsThreeState = True
checkBox.IsChecked = None
checkBox.Indeterminate += lambda args: api.Print("Hedge mode is undecided")
api.Chart.AddControl(checkBox)