Back to Devexpress

FileDialogBase.ValidateNames Property

windowsforms-devexpress-dot-xtraeditors-dot-filedialogbase-dff6976d.md

latest2.4 KB
Original Source

FileDialogBase.ValidateNames Property

Gets or sets whether the dialog supports Win32 file names only (no angle brackets, no colons, 3-character extension, etc.). This property is identical to the standard FileDialog.ValidateNames 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 bool ValidateNames { get; set; }
vb
<DefaultValue(True)>
<DXCategory("Behavior")>
Public Property ValidateNames As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true to use Win32 file names only; otherwise, false.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ValidateNames 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#L49

csharp
dialog.DereferenceLinks = true;
dialog.ValidateNames = true;
dialog.AddExtension = false;

See Also

FileDialogBase Class

FileDialogBase Members

DevExpress.XtraEditors Namespace