Skip to content

SaveFileDialog.Reset

method · SaveFileDialog · 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, 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 void Reset()
saveFileDialog.Reset() -> None

Examples

var saveFileDialog = new SaveFileDialog { Title = "Export", DefaultExt = "csv" };
saveFileDialog.ShowDialog();
saveFileDialog.Reset();
Print("Default extension after reset: '{0}'", saveFileDialog.DefaultExt);
saveFileDialog = SaveFileDialog()
saveFileDialog.Title = "Export"
saveFileDialog.DefaultExt = "csv"
saveFileDialog.ShowDialog()
saveFileDialog.Reset()
api.Print(f"Default extension after reset: '{saveFileDialog.DefaultExt}'")