ImageEn, unit iemview

TImageEnMView.FilenameFilter

TImageEnMView.FilenameFilter


Declaration

property FilenameFilter: String;


Description

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

Note: When filtering is used the filtered frames are hidden from display but still available programatically

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


Demo

Demo  Demos\Multi\Filtering\Filtering.dpr


Example

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

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

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

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

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

// Clear the filter (show all files)
IEFolderMView1.FilenameFilter := '';


See Also

- ImageFiltered
- OnFilter
- UnfilteredCount