Click or drag to resize

SystemImageList.GetIconIndex Method (String, Boolean, FileAttributes)

Gets the index of the icon of the passed ItemIdList.

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 6.3.1
Syntax
public static int GetIconIndex(
	string pFilePath,
	bool pOpened,
	FileAttributes pAttributes
)

Parameters

pFilePath
Type: System.String
Full pathname of the file.
pOpened
Type: System.Boolean
true, if the icon should be returned open, like it is often used for the selected node in treeviews.
pAttributes
Type: System.IO.FileAttributes
The file attributes that should be used. Usually 0 is passed here. If set the file to retrieve the icon for will not be accessed, it need not even exist. Instead the icon is returned based on this parameter.

Return Value

Type: Int32
The index of the corresponding icon in the system image list.
See Also