ImageEn, unit iexFolderMView

TImageEnFolderMView.SetFolderEx

TImageEnFolderMView.SetFolderEx


Declaration


procedure SetFolderEx(const sFolder: string; xFileTypes: TIEFolderFileTypes; const sFileTypesMask: string = ''; const sExclusionMask: string = ''; const sFilenameFilter: string = '');


Description


Specifies the folder and filtering options in one step (to avoid premature updating).

It is the same as making the following calls:
  LockUpdate
  try
    Folder
    FileTypes
    FileTypesMask
    ExclusionMask
    FilenameFilter
  finally
    UnlockUpdate
  end;


Example


// Retrieve all JPEG images in C:\Images\
IEFolderMView1.SetFolderEx('C:\Images\', iefCustom, 'jpg,jpeg,jpe');

// This is the same as calling:
IEFolderMView1.LockUpdate();
try
  IEFolderMView1.Folder := 'C:\Images\';
  IEFolderMView1.FileTypes := iefCustom;
  IEFolderMView1.FileTypesMask := 'jpg,jpeg,jpe';
finally
  IEFolderMView1.UnlockUpdate();
end;