Открытые члены | Свойства

Класс TSLab.UI.FolderBrowserDialog

Prompts the user to select a folder. Подробнее...

Полный список членов класса

Открытые члены

 FolderBrowserDialog ()
 Creates a new instance of the FolderBrowserDialog class.
void Reset ()
 Resets all properties to their default values.
bool ShowDialog ()
 Displays the folder browser dialog.
bool ShowDialog (Window owner)
 Displays the folder browser dialog.

Свойства

static bool IsVistaFolderDialogSupported [get]
 Gets a value that indicates whether the current OS supports Vista-style common file dialogs.
string Description [get, set]
 Gets or sets the descriptive text displayed above the tree view control in the dialog box, or below the list view control in the Vista style dialog.
System.Environment.SpecialFolder RootFolder [get, set]
 Gets or sets the root folder where the browsing starts from. This property has no effect if the Vista style dialog is used.
string SelectedPath [get, set]
 Gets or sets the path selected by the user.
bool ShowNewFolderButton [get, set]
 Gets or sets a value indicating whether the New Folder button appears in the folder browser dialog box. This property has no effect if the Vista style dialog is used; in that case, the New Folder button is always shown.
bool UseDescriptionForTitle [get, set]
 Gets or sets a value that indicates whether to use the value of the Description property as the dialog title for Vista style dialogs. This property has no effect on old style dialogs.

Подробное описание

Prompts the user to select a folder.

This class will use the Vista style Select Folder dialog if possible, or the regular FolderBrowserDialog if it is not. Note that the Vista style dialog is very different, so using this class without testing in both Vista and older Windows versions is not recommended.

<threadsafety instance="false" static="true">


Конструктор(ы)

TSLab.UI.FolderBrowserDialog.FolderBrowserDialog (  ) 

Creates a new instance of the FolderBrowserDialog class.


Методы

void TSLab.UI.FolderBrowserDialog.Reset (  ) 

Resets all properties to their default values.

bool TSLab.UI.FolderBrowserDialog.ShowDialog ( Window  owner  ) 

Displays the folder browser dialog.

Аргументы:
owner Handle to the window that owns the dialog.
Возвращает:
If the user clicks the OK button, is returned; otherwise, .
bool TSLab.UI.FolderBrowserDialog.ShowDialog (  ) 

Displays the folder browser dialog.

Возвращает:
If the user clicks the OK button, is returned; otherwise, .

Полный список свойств

string TSLab.UI.FolderBrowserDialog.Description [get, set]

Gets or sets the descriptive text displayed above the tree view control in the dialog box, or below the list view control in the Vista style dialog.

The description to display. The default is an empty string ("").

bool TSLab.UI.FolderBrowserDialog.IsVistaFolderDialogSupported [static, get]

Gets a value that indicates whether the current OS supports Vista-style common file dialogs.

on Windows Vista or newer operating systems; otherwise, .

System.Environment.SpecialFolder TSLab.UI.FolderBrowserDialog.RootFolder [get, set]

Gets or sets the root folder where the browsing starts from. This property has no effect if the Vista style dialog is used.

One of the System.Environment.SpecialFolder values. The default is Desktop.

Исключения:
System.ComponentModel.InvalidEnumArgumentException The value assigned is not one of the System.Environment.SpecialFolder values.
string TSLab.UI.FolderBrowserDialog.SelectedPath [get, set]

Gets or sets the path selected by the user.

The path of the folder first selected in the dialog box or the last folder selected by the user. The default is an empty string ("").

bool TSLab.UI.FolderBrowserDialog.ShowNewFolderButton [get, set]

Gets or sets a value indicating whether the New Folder button appears in the folder browser dialog box. This property has no effect if the Vista style dialog is used; in that case, the New Folder button is always shown.

if the New Folder button is shown in the dialog box; otherwise, . The default is .

bool TSLab.UI.FolderBrowserDialog.UseDescriptionForTitle [get, set]

Gets or sets a value that indicates whether to use the value of the Description property as the dialog title for Vista style dialogs. This property has no effect on old style dialogs.

to indicate that the value of the Description property is used as dialog title; to indicate the value is added as additional text to the dialog. The default is .