---
id: "M:cAlgo.API.MultiSelect.SelectAllItems"
kind: "method"
type: "T:cAlgo.API.MultiSelect"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/MultiSelect/SelectAllItems/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# MultiSelect.SelectAllItems

Member of [MultiSelect](https://help.ctrader.com/ctrader-algo/references/Controls/MultiSelect/index.md).

## SelectAllItems()

Selects all items on the MultiSelect

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public void SelectAllItems()
```

Python:

```python
multiSelect.SelectAllItems() -> None
```

Available since cAlgo.API 5.6.

### Examples

C#:

```csharp
var multiSelect = new MultiSelect();
foreach (var position in Positions)
    multiSelect.AddItem(position.Id.ToString());
multiSelect.SelectAllItems();
Chart.AddControl(multiSelect);
```

Python:

```python
multiSelect = MultiSelect()
for position in api.Positions:
    multiSelect.AddItem(str(position.Id))
multiSelect.SelectAllItems()
api.Chart.AddControl(multiSelect)
```

