ComboBox.RemoveItem
method · ComboBox · cAlgo.API
DesktopCLICloud
Removes an existing item from 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 RemoveItem(string item)
comboBox.RemoveItem(item: str) -> None
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
item | string | str | The string value that will be removed from ComboBox |
Examples
var comboBox = new ComboBox();
comboBox.AddItem("EURUSD");
comboBox.AddItem("XAUUSD");
comboBox.RemoveItem("XAUUSD");
Chart.AddControl(comboBox);
comboBox = ComboBox()
comboBox.AddItem("EURUSD")
comboBox.AddItem("XAUUSD")
comboBox.RemoveItem("XAUUSD")
api.Chart.AddControl(comboBox)