SaveFileDialog.Filter
property · SaveFileDialog · cAlgo.API Since 5.1
DesktopCLICloud
Gets or sets the filter string that determines what types of files are displayed in file dialog.
Environment behaviour
CLI — not supported. No dialog can be shown in the CLI: ShowDialog returns FileDialogResult.None, nothing is written and the dialog settings are only stored.
Cloud — not supported. No dialog can be shown in the cloud: ShowDialog returns FileDialogResult.None, nothing is written and the dialog settings are only stored.
Definition
public string Filter {get; set;}
saveFileDialog.Filter: str
Returns string
Examples
var saveFileDialog = new SaveFileDialog { Filter = "JSON files (*.json)|*.json|All files (*.*)|*.*" };
saveFileDialog.ShowDialog();
saveFileDialog = SaveFileDialog()
saveFileDialog.Filter = "JSON files (*.json)|*.json|All files (*.*)|*.*"
saveFileDialog.ShowDialog()