Skip to content

OpenFileDialog.Reset

method · OpenFileDialog · cAlgo.API Since 5.1

DesktopCLICloud

Resets all dialog properties to their default values.

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 void Reset()
openFileDialog.Reset() -> None

Examples

var openFileDialog = new OpenFileDialog { Title = "Import", Multiselect = true };
openFileDialog.ShowDialog();
openFileDialog.Reset();
Print("Multiselect after reset: {0}", openFileDialog.Multiselect);
openFileDialog = OpenFileDialog()
openFileDialog.Title = "Import"
openFileDialog.Multiselect = True
openFileDialog.ShowDialog()
openFileDialog.Reset()
api.Print(f"Multiselect after reset: {openFileDialog.Multiselect}")