ImageEn, unit iexFolderMView |
|
TImageEnFolderMView.FileTypesMask
Declaration
property FileTypesMask: string;
Description
Specifies the file types to retrieve from your
Folder. If an empty string is specified all extensions will be returned.
File types must be specified as a comma-separated list of extensions, e.g. 'jpg,jpeg,jpe', or a standard file mask, e.g. '*.jpg;*.jpeg;*.jpe'.
Note: Property is ignored unless
FileTypes has been set to iefCustom
// Retrieve only JPEG images
IEFolderMView1.LockUpdate();
try
IEFolderMView1.Folder := 'C:\Images\';
IEFolderMView1.FileTypes := iefCustom;
IEFolderMView1.FileTypesMask := 'jpg,jpeg,jpe';
finally
// Re-enable updating and call update
IEFolderMView1.UnlockUpdate();
end;
// Use a TFilterComboBox to filter the TImageEnFolderMView
procedure TForm1.FilterComboBox1Change(Sender: TObject);
begin
IEFolderMView1.FileTypes := iefCustom;
IEFolderMView1.FileTypesMask := FilterComboBox1.Mask;
end;
See Also
◼Folder
◼FileTypes
◼Filter
◼ExclusionMask
◼SetFolderEx