---
id: "P:cAlgo.API.OpenFileDialog.Multiselect"
kind: "property"
type: "T:cAlgo.API.OpenFileDialog"
url: "https://help.ctrader.com/ctrader-algo/references/Dialogs/OpenFileDialog/Multiselect/"
---

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

# OpenFileDialog.Multiselect

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

## Multiselect

Gets or sets an option indicating whether OpenFileDialog allows users to select multiple files.

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

- CLI: No dialog can be shown in the CLI: ShowDialog returns FileDialogResult.None and the dialog settings are only stored.
- Cloud: No dialog can be shown in the cloud: ShowDialog returns FileDialogResult.None and the dialog settings are only stored.

C#:

```csharp
public bool Multiselect {get; set;}
```

Python:

```python
openFileDialog.Multiselect: bool
```

### Returns

`bool` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var openFileDialog = new OpenFileDialog { Multiselect = true, Filter = "CSV files (*.csv)|*.csv" };
if (openFileDialog.ShowDialog() == FileDialogResult.OK)
    Print("Selected {0} file(s)", openFileDialog.FileNames.Length);
```

Python:

```python
openFileDialog = OpenFileDialog()
openFileDialog.Multiselect = True
openFileDialog.Filter = "CSV files (*.csv)|*.csv"
if openFileDialog.ShowDialog() == FileDialogResult.OK:
    api.Print(f"Selected {len(openFileDialog.FileNames)} file(s)")
```

