Skip to content

OpenFolderDialog.FolderName

property · OpenFolderDialog · cAlgo.API Since 5.1

DesktopCLICloud

Gets a string containing the full path of the folder selected in an open folder dialog.

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 string FolderName {get;}
openFolderDialog.FolderName: str

Returns string

Examples

var openFolderDialog = new OpenFolderDialog();
if (openFolderDialog.ShowDialog() == FileDialogResult.OK)
    Print("Folder: {0}", openFolderDialog.FolderName);
openFolderDialog = OpenFolderDialog()
if openFolderDialog.ShowDialog() == FileDialogResult.OK:
    api.Print(f"Folder: {openFolderDialog.FolderName}")