ImageEn, unit iexFolderMView

TImageEnFolderMView.FilenameFilter

TImageEnFolderMView.FilenameFilter


Declaration


property FilenameFilter: String;


Description


Limit display to files whose name matches a specified filter. If FilenameFilter is blank, all files are displayed.

Filter formatting is as follows:
Value Description
*text* (or just "text") Matches filenames containing "text"
text* Matches filenames that start with "text"
*text Matches filenames that end with "text"


Notes:
- Filtering is case-insensitive
- Folders are not filtered
- Only the filename and its extension is assessed, not the path


Example


// Display files containing "Italy"
IEFolderMView1.FilenameFilter := '*italy*';

// Display files that start with "IMG"
IEFolderMView1.FilenameFilter := 'image*';

// Display PNG files ending in 2015
IEFolderMView1.FilenameFilter := '*2015.png';


See Also


- Folder
- FileTypes
- FileTypesMask
- ExclusionMask
- SetFolderEx