FileDialog Properties

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Namespace:   Microsoft.Win32
Assembly:  PresentationFramework (in PresentationFramework.dll)

NameDescription
System_CAPS_pubpropertyAddExtension

Gets or sets a value indicating whether a file dialog automatically adds an extension to a file name if the user omits an extension.

System_CAPS_pubpropertyCheckFileExists

Gets or sets a value indicating whether a file dialog displays a warning if the user specifies a file name that does not exist.

System_CAPS_pubpropertyCheckPathExists

Gets or sets a value that specifies whether warnings are displayed if the user types invalid paths and file names.

System_CAPS_pubpropertyCustomPlaces

Gets or sets the list of custom places for file dialog boxes.

System_CAPS_pubpropertyDefaultExt

Gets or sets a value that specifies the default extension string to use to filter the list of files that are displayed.

System_CAPS_pubpropertyDereferenceLinks

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

System_CAPS_pubpropertyFileName

Gets or sets a string containing the full path of the file selected in a file dialog.

System_CAPS_pubpropertyFileNames

Gets an array that contains one file name for each selected file.

System_CAPS_pubpropertyFilter

Gets or sets the filter string that determines what types of files are displayed from either the OpenFileDialog or SaveFileDialog.

System_CAPS_pubpropertyFilterIndex

Gets or sets the index of the filter currently selected in a file dialog.

System_CAPS_pubpropertyInitialDirectory

Gets or sets the initial directory that is displayed by a file dialog.

System_CAPS_protpropertyOptions

Gets the Win32 common file dialog flags that are used by file dialogs for initialization.

System_CAPS_pubpropertyRestoreDirectory

This property is not implemented.

System_CAPS_pubpropertySafeFileName

Gets a string that only contains the file name for the selected file.

System_CAPS_pubpropertySafeFileNames

Gets an array that contains one safe file name for each selected file.

System_CAPS_pubpropertyTag

Gets or sets an object associated with the dialog. This provides the ability to attach an arbitrary object to the dialog.(Inherited from CommonDialog.)

System_CAPS_pubpropertyTitle

Gets or sets the text that appears in the title bar of a file dialog.

System_CAPS_pubpropertyValidateNames

Gets or sets a value indicating whether the dialog accepts only valid Win32 file names.

Return to top
Show: