Skip to main content
A newer version of this page is available.
All docs
V18.2

IOpenFileDialogService.Filter Property

Gets or sets a filter string which specifies options that are available in the “Files of type” box in the dialog box.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v18.2.dll

Declaration

string Filter { get; set; }

Property Value

Type Description
String

A System.String value containing the file filtering options available in the dialog box. The default is an empty string.

Remarks

The following are examples of a filter string:

Text files (*.txt)|*.txt|All files (*.*)|*.*

Image Files (*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|All files (*.*)|*.*

Use the IOpenFileDialogService.FilterIndex property to set which filtering option is shown first to the user.

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

See Also