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

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

# SaveFileDialog.Filter

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

## Filter

Gets or sets the filter string that determines what types of files are displayed in file dialog.

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

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

C#:

```csharp
public string Filter {get; set;}
```

Python:

```python
saveFileDialog.Filter: str
```

### Returns

`string` — 

Available since cAlgo.API 5.1.

### Examples

C#:

```csharp
var saveFileDialog = new SaveFileDialog { Filter = "JSON files (*.json)|*.json|All files (*.*)|*.*" };
saveFileDialog.ShowDialog();
```

Python:

```python
saveFileDialog = SaveFileDialog()
saveFileDialog.Filter = "JSON files (*.json)|*.json|All files (*.*)|*.*"
saveFileDialog.ShowDialog()
```

