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.v19.2.dll


string Filter { get; set; }
Property Filter As String

Property Value

Type Description

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


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.

See Also