ImageEn, unit iemview

TImageEnMView.FilenameToIndex

TImageEnMView.FilenameToIndex


Declaration

function FilenameToIndex(const sFilename : string) : integer;


Description

Returns the index of the specified filename or -1 if the file does not exist in the list.

sFilename must be a full path (file folder and name).


Example

// Set caption of "Image.jpg" to "Cool Image"
idx := IEFolderMView.FilenameToIndex('C:\My Images\Image.jpg');
if idx >=0 then
  IEFolderMView.ImageInfoText[idx].Caption := 'Cool Image';