Επεξεργασία

Κοινή χρήση μέσω


CommonItemDialog Class

Definition

Provides a common base class for wrappers around both the OpenFile and SaveFile common dialog boxes. Derives from CommonDialog. This class is not intended to be derived from except by the OpenFileDialog and SaveFileDialog classes.

public ref class CommonItemDialog abstract : Microsoft::Win32::CommonDialog
public abstract class CommonItemDialog : Microsoft.Win32.CommonDialog
type CommonItemDialog = class
    inherit CommonDialog
Public MustInherit Class CommonItemDialog
Inherits CommonDialog
Inheritance
CommonItemDialog
Derived

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.

ClientGuid

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

CustomPlaces
DefaultDirectory

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

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

InitialDirectory

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

RootDirectory

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

ShowHiddenItems

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

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.

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.

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.

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.

ShowDialog()

Displays a common dialog.

(Inherited from CommonDialog)
ShowDialog(Window)

Displays a common dialog.

(Inherited from CommonDialog)
ToString()

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

Applies to