OpenFolderDialog.InitialDirectory
property · OpenFolderDialog · cAlgo.API Since 5.1
DesktopCLICloud
Gets or sets the initial directory that is displayed by a file 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 InitialDirectory {get; set;}
openFolderDialog.InitialDirectory: str
Returns string
Examples
var openFolderDialog = new OpenFolderDialog { InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) };
openFolderDialog.ShowDialog();
from System import Environment
openFolderDialog = OpenFolderDialog()
openFolderDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)
openFolderDialog.ShowDialog()