OpenFileDialog.Multiselect
property · OpenFileDialog · cAlgo.API Since 5.1
DesktopCLICloud
Gets or sets an option indicating whether OpenFileDialog allows users to select multiple files.
Environment behaviour
CLI — not supported. No dialog can be shown in the CLI: ShowDialog returns FileDialogResult.None and the dialog settings are only stored.
Cloud — not supported. No dialog can be shown in the cloud: ShowDialog returns FileDialogResult.None and the dialog settings are only stored.
Definition
public bool Multiselect {get; set;}
openFileDialog.Multiselect: bool
Returns bool
Examples
var openFileDialog = new OpenFileDialog { Multiselect = true, Filter = "CSV files (*.csv)|*.csv" };
if (openFileDialog.ShowDialog() == FileDialogResult.OK)
Print("Selected {0} file(s)", openFileDialog.FileNames.Length);
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)")