RadioButton constructor
constructor · RadioButton · cAlgo.API
DesktopCLICloud
Initializes a new instance of the Radiobutton 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 RadioButton()
RadioButton()
Examples
var buyRadioButton = new RadioButton { Text = "Buy", GroupName = "Direction", IsChecked = true };
var sellRadioButton = new RadioButton { Text = "Sell", GroupName = "Direction" };
var panel = new StackPanel { Orientation = Orientation.Horizontal };
panel.AddChild(buyRadioButton);
panel.AddChild(sellRadioButton);
Chart.AddControl(panel);
buyRadioButton = RadioButton()
buyRadioButton.Text = "Buy"
buyRadioButton.GroupName = "Direction"
buyRadioButton.IsChecked = True
sellRadioButton = RadioButton()
sellRadioButton.Text = "Sell"
sellRadioButton.GroupName = "Direction"
panel = StackPanel()
panel.Orientation = Orientation.Horizontal
panel.AddChild(buyRadioButton)
panel.AddChild(sellRadioButton)
api.Chart.AddControl(panel)