OpenFolderDialog constructor
constructor · OpenFolderDialog · cAlgo.API Since 5.1
DesktopCLICloud
Creates an OpenFolderDialog.
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 OpenFolderDialog()
OpenFolderDialog()
Examples
var openFolderDialog = new OpenFolderDialog { Title = "Select export folder" };
if (openFolderDialog.ShowDialog() == FileDialogResult.OK)
Print("Selected folder: {0}", openFolderDialog.FolderName);
openFolderDialog = OpenFolderDialog()
openFolderDialog.Title = "Select export folder"
if openFolderDialog.ShowDialog() == FileDialogResult.OK:
api.Print(f"Selected folder: {openFolderDialog.FolderName}")