Skip to main content
Version: 4.1

FolderBrowserDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

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

public class FolderBrowserDialog : CommonDialog

Constructors

Instance member FolderBrowserDialog()

Initializes a new instance of FolderBrowserDialog.

Instance member FolderBrowserDialog(roots)

Initializes a new instance of FolderBrowserDialog using the initial roots .

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

Instance member FolderBrowserDialog(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 member Description

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

Instance member Roots

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.

The deafult value is an empty FileDialogRootCollection

Instance member SelectedPath

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

Instance member ShowHelp

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

Instance member Title

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

Methods

Protected member CreateUI()

Returns: Form.

Instance member GetRoot(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 member MapPath(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 member OnLoadPath(e)

Fires the LoadPath event.

ParameterTypeDescription
eFileDialogLoadPathEventArgsA FileDialogLoadPathEventArgs object that provides the event data.

Instance member Reset()

Resets all properties to their default values.

Events

Instance member LoadPath

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