FolderBrowserDialog

Wisej.Web.FolderBrowserDialog

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.1.0.0)

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

public class FolderBrowserDialog : CommonDialog

Constructors

FolderBrowserDialog()

Initializes a new instance of FolderBrowserDialog.

FolderBrowserDialog(roots)

Initializes a new instance of FolderBrowserDialog using the initial roots .

NameTypeDescription

roots

Initial file systems to load in the FolderBrowserDialog.

FolderBrowserDialog(container)

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

NameTypeDescription

container

An IContainer that represents the container of the FolderBrowserDialog component.

Properties

Description

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

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.

SelectedPath

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

ShowHelp

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

Title

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

Methods

GetRoot(path)

Returns the IFileSystemProvider that contains the specified path .

ParameterTypeDescription

path

Full 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.

MapPath(folderPath)

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

ParameterTypeDescription

folderPath

Virtual path to map to the corresponding physical path.

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

Reset()

Resets all properties to their default values.

Events

LoadPath

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

Last updated