DXFileDialog.DefaultExt Property

Gets or sets the default file name extension.

Namespace: DevExpress.Xpf.Dialogs

Assembly: DevExpress.Xpf.Dialogs.v20.1.dll


public string DefaultExt { get; set; }
Public Property DefaultExt As String

Property Value

Type Description

The default file name extension. The returned string does not include the period. The default value is an empty string ("").


When an end user specifies a file name without an extension, the DXFileDialog appends an extension to the file name. This extension is determined by the DXFileDialog.Filter and DefaultExt properties.

If a DXFileDialog.Filter is selected in the DXFileDialog and the filter specifies an extension, then that extension is used.

If the selected DXFileDialog.Filter uses a wildcard in place of the extension (e.g., "All files|*.*"), then the extension specified in the DefaultExt property is used.


See Also