[Overview][Constants][Classes][Procedures and functions][Index] | Reference for unit 'ExtDlgs' (#lcl)

# TOpenPictureDialog.Filter

Contains a delimited list of descriptions and extensions for file available in the dialog.

## Declaration

Source position: extdlgs.pas line 96

`published property TOpenPictureDialog.Filter : string stored IsFilterStored;`

## Description

Filter is a String property which contains a delimited list of file name filters available in the dialog. Each value in the delimited list is separated by a Pipe (or vertical bar) character ('|') and consists of a description and file extension for files matching the filter value. For example:

    'All files|*.*|Lazarus Project files|*.lpr|Pascal units|*.pas;*.pp'

The initial value for Filter is assigned in Create using the value from the DefaultFilter property.

Use GetFilterExt to get the file extension for the current Filter value selected in the dialog. Use FilterIndex to determine the position for the selected file filter.

## See also

TOpenPictureDialog.Create |  | Constructor for the class instance.
TOpenPictureDialog.DefaultFilter |  | DefaultFilter - the default filename filter.
TOpenPictureDialog.GetFilterExt |  | GetFilterExt - returns the extension for filtering filenames.
TFileDialog.Filter |  | A string which contains available filename filters used to select files by their file extensions.
TFileDialog.FilterIndex |  | This property sets which file filter is the default.