RadioButton.GroupName
property · RadioButton · cAlgo.API
DesktopCLICloud
Gets or sets the name of the group.
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 string GroupName {get; set;}
radioButton.GroupName: str
Returns string
Examples
var panel = new StackPanel();
foreach (var timeFrameName in new[] { "Hour", "Hour4", "Daily" })
panel.AddChild(new RadioButton { Text = timeFrameName, GroupName = "TimeFrame" });
Chart.AddControl(panel);
panel = StackPanel()
for timeFrameName in ["Hour", "Hour4", "Daily"]:
radioButton = RadioButton()
radioButton.Text = timeFrameName
radioButton.GroupName = "TimeFrame"
panel.AddChild(radioButton)
api.Chart.AddControl(panel)