ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellBrowser.TJamSystemImageList.GetIndexFromItemIdList

Returns the icon number for a given absolute ItemIdList.

Syntax
Pascal
class function GetIndexFromItemIdList(const AbsoluteItemIdList: IItemIdList; aSize: TJamImageListSize = si_Small; Opened: Boolean = False): Integer;
Parameters 
Description 
const AbsoluteItemIdList: IItemIdList 
The absolute ItemIdList of a file  
aSize: TJamImageListSize = si_Small 
The size of interest. Default: si_Small  
Opened: Boolean = False 
Pass true to receive opened icons where available. Default false.  

The index in the SystemImageList that contains the icon for the passed ItemIdList.

This method returns the number of the icon, which should be displayed for the file with the given absolute ItemIdList. You can use this index for example with the ImageIndex property of Delphi's TTreeNode and TListItem objects.