ImageEn, unit iexBitmaps

TIEIPTCInfoList.IndexOf

TIEIPTCInfoList.IndexOf


Declaration

function IndexOf(RecordNumber: integer; DataSet: integer): integer;


Description

Finds the first item that matches the RecordNumber and DataSet parameters and return its index.
Result is -1 if the item is not in the list.


Examples

// Read the PhotoShop image description
ImageEnView1.IO.LoadFromFile('C:\image.jpg');
Idx := ImageEnView1.IO.Params.IPTC_Info.IndexOf(2, 120);
Caption := ImageEnView1.IO.Params.IPTC_Info.StringItem[idx];

// write the image description
ImageEnView1.IO.Params.IPTC_Info.StringItem[idx] := 'This is the new caption';
ImageEnView1.IO.SaveToFile('D:\image.jpg');