Back to Devexpress

FileDialogBase.CheckPathExists Property

windowsforms-devexpress-dot-xtraeditors-dot-filedialogbase-1e7b7c9d.md

latest2.4 KB
Original Source

FileDialogBase.CheckPathExists Property

Gets or sets whether the dialog box displays a warning if a user specifies a path that does not exist. This property is identical to the standard FileDialog.CheckPathExists property.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraDialogs.v25.2.dll

NuGet Packages : DevExpress.Win.Dialogs, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public virtual bool CheckPathExists { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Behavior")>
Public Overridable Property CheckPathExists As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the dialog should display a warning; otherwise, false.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CheckPathExists property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-save-a-document/CS/SaveDocument/CustomCommand.cs#L46

csharp
dialog.CheckFileExists = false;
dialog.CheckPathExists = true;
dialog.OverwritePrompt = true;

See Also

FileDialogBase Class

FileDialogBase Members

DevExpress.XtraEditors Namespace