Breyta

Deila með


OpenFolderDialog Class

Definition

Represents a common dialog box that allows the user to open one or more folders. This class cannot be inherited.

public ref class OpenFolderDialog sealed : Microsoft::Win32::CommonItemDialog
public sealed class OpenFolderDialog : Microsoft.Win32.CommonItemDialog
type OpenFolderDialog = class
    inherit CommonItemDialog
Public NotInheritable Class OpenFolderDialog
Inherits CommonItemDialog
Inheritance

Constructors

OpenFolderDialog()

Initializes a new instance of the OpenFolderDialog class.

Properties

AddToRecent

Gets or sets a value indicating whether the dialog box will add the item being opened or saved to the recent documents list.

(Inherited from CommonItemDialog)
ClientGuid

Gets or sets a GUID to associate with the dialog's persisted state.

(Inherited from CommonItemDialog)
CustomPlaces (Inherited from CommonItemDialog)
DefaultDirectory

Gets or sets the directory displayed by the file dialog box if no recently used directory value is available.

(Inherited from CommonItemDialog)
DereferenceLinks

Gets or sets a value indicating whether the dialog box returns the location of the file referenced by the shortcut or whether it returns the location of the shortcut (.lnk).

(Inherited from CommonItemDialog)
FolderName

Gets or sets the full path of the folder selected in the folder dialog box.

FolderNames

Gets the folder names of all selected folders in the dialog box.

InitialDirectory

Gets or sets the initial directory displayed by the file dialog box.

(Inherited from CommonItemDialog)
Multiselect

Gets or sets an option flag indicating whether the dialog box allows multiple folders to be selected.

RootDirectory

Gets or sets the directory displayed as the navigation root for the dialog.

(Inherited from CommonItemDialog)
SafeFolderName

Gets the folder name component of the folder selected in the dialog box.

SafeFolderNames

Gets the names of all folders selected in the dialog box.

ShowHiddenItems

Gets or sets a value indicating whether the dialog box will show hidden and system items regardless of user preferences.

(Inherited from CommonItemDialog)
Tag

Gets or sets an object associated with the dialog. This provides the ability to attach an arbitrary object to the dialog.

(Inherited from CommonDialog)
Title

Gets or sets the text shown in the title bar of the file dialog.

(Inherited from CommonItemDialog)
ValidateNames

Gets or sets a value indicating whether to check for situations that would prevent an application from opening the selected file, such as sharing violations or access denied errors.

(Inherited from CommonItemDialog)

Methods

CheckPermissionsToShowDialog()

Determines whether sufficient permissions for displaying a dialog exist.

(Inherited from CommonDialog)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
HookProc(IntPtr, Int32, IntPtr, IntPtr)

Defines the common dialog box hook procedure that is overridden to add specific functionality to a common dialog box.

(Inherited from CommonDialog)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnItemOk(CancelEventArgs)

Handles the IFileDialogEvents.OnFileOk callback.

(Inherited from CommonItemDialog)
Reset()

Resets all properties to their default values.

RunDialog(IntPtr)

Performs initialization work in preparation to show a file open, file save, or folder open dialog box.

(Inherited from CommonItemDialog)
ShowDialog()

Displays a common dialog.

(Inherited from CommonDialog)
ShowDialog(Window)

Displays a common dialog.

(Inherited from CommonDialog)
ToString()

Returns a string representation of the folder dialog with key information for debugging purposes.

Events

FolderOk

Occurs when the user clicks on the Open button on a folder dialog box.

Applies to