Skip to main content
Version: 3.5

FolderBrowserDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Allows the user to select a folder from one of the Roots.

public class FolderBrowserDialog : CommonDialog

Constructors

Instance memberFolderBrowserDialog()

Initializes a new instance of FolderBrowserDialog.

Instance memberFolderBrowserDialog(roots)

Initializes a new instance of FolderBrowserDialog using the initial roots .

NameTypeDescription
rootsIFileSystemProvider[]Initial file systems to load in the FolderBrowserDialog.

Instance memberFolderBrowserDialog(container)

Initializes a new instance of the FolderBrowserDialog extender with a specified container.

NameTypeDescription
containerIContainerAn IContainer that represents the container of the FolderBrowserDialog component.

Properties

Instance memberDescription

String: Returns or sets the description splayed above the tree view control in the dialog box. (Default: "")

Instance memberRoots

FileDialogRootCollection: List of root IFileSystemProvider file systems displayed by the FolderBrowserDialog.

The Roots collection and the IFileSystemProvider implementations allow the application to use arbitrary names mapped to a specific path. For example, the app may add a root object named "Documents" to "c:\users[logged-user-id]\files\documents". Each user will see "Documents" as the root, but will also see only the files in the [logged-user-id] directory.

Instance memberSelectedPath

String: Returns sets the path selected by the user. (Default: "")

Instance memberShowHelp

Boolean: Returns or sets whether the Help button is displayed in the file dialog box. (Default: False)

Instance memberTitle

String: Returns or sets the file dialog box title. (Default: "")

Methods

Instance memberGetRoot(path)

Returns the IFileSystemProvider that contains the specified path .

ParameterTypeDescription
pathStringFull path of the file to locate in on of the Roots.

Returns: IFileSystemProvider. The IFileSystemProvider that contains the specified path or null if not found.

Instance memberMapPath(folderPath)

Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.

ParameterTypeDescription
folderPathStringVirtual path to map to the corresponding physical path.

Returns: String. The physical path for the IFileSystemProvider implementation.

Instance memberReset()

Resets all properties to their default values.

Events

Instance memberLoadPath

FileDialogLoadPathEventHandler Fired when the file dialog is loading a file or folder.