SystemImageListGetIconIndex(String, Boolean, FileAttributes) Method |
Gets the index of the icon of the passed ItemIdList.
Namespace: Jam.ShellAssembly: ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 7.2
Syntaxpublic static int GetIconIndex(
string pFilePath,
bool pOpened,
FileAttributes pAttributes
)
Public Shared Function GetIconIndex (
pFilePath As String,
pOpened As Boolean,
pAttributes As FileAttributes
) As Integer
public:
static int GetIconIndex(
String^ pFilePath,
bool pOpened,
FileAttributes pAttributes
)
static member GetIconIndex :
pFilePath : string *
pOpened : bool *
pAttributes : FileAttributes -> int Parameters
- pFilePath String
- Full pathname of the file.
- pOpened Boolean
- true, if the icon should be returned open, like it is often used for the
selected node in treeviews.
- pAttributes 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
Int32The index of the corresponding icon in the system image list.
See Also