FMX.Dialogs.TOpenDialog.Filter
Delphi
property Filter: string read FFilter write FFilter;
C++
__property System::UnicodeString Filter = {read=FFilter, write=FFilter};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.Dialogs.pas FMX.Dialogs.hpp |
FMX.Dialogs | TOpenDialog |
Description
Represents the file masks (filters) of the dialog.
The file-selection dialog includes a drop-down list of file types on the left of the 'File Name:' edit box. When the user picks a file type from the list, only files of the selected type are displayed in the dialog. You can select only one filter at a time.
In order for Filter to work properly, the assigned string must be formatted as follows:
'<first displayed name>|<first file extension>|<second displayed name>|<second file extension>|...|<n-th displayed name>|<n-th file extension>'
For example, the next code sample will add filters for text and executable files:
OpenDialog1.Filter:='Applications (*.exe)|*.EXE|Text files (*.txt)|*.TXT';