ComboBox.AddItem
method · ComboBox · cAlgo.API
DesktopCLICloud
Adds a new item to the ComboBox
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 void AddItem(string item)
comboBox.AddItem(item: str) -> None
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
item | string | str | The string value that will be added on ComboBox |
Examples
var comboBox = new ComboBox();
foreach (var position in Positions)
comboBox.AddItem(position.Id.ToString());
Chart.AddControl(comboBox);
comboBox = ComboBox()
for position in api.Positions:
comboBox.AddItem(str(position.Id))
api.Chart.AddControl(comboBox)