C# Class SystemImageList.SysImageList

Summary description for SysImageList.
Inheritance: IDisposable
Show file Open project: Gainedge/BetterExplorer Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Clears up any resources associated with the SystemImageList

Dispose ( bool disposing ) : void

Clears up any resources associated with the SystemImageList when disposing is true.

IconIndex ( string fileName ) : int

Return the index of the icon for the specified file, always using the cached version where possible.

IconIndex ( string fileName, bool forceLoadFromDisk ) : int

Returns the index of the icon for the specified file

IconIndex ( string fileName, bool forceLoadFromDisk, ShellIconStateConstants iconState ) : int

Returns the index of the icon for the specified file

SysImageList ( ) : System

Creates a Small Icons SystemImageList

SysImageList ( SysImageListSize size ) : System

Creates a SystemImageList with the specified size

Private Methods

Method Description
ImageList_DrawIndirect ( IMAGELISTDRAWPARAMS &pimldp ) : int
ImageList_GetIcon ( IntPtr himl, int i, int flags ) : IntPtr
ImageList_GetIconSize ( IntPtr himl, int &cx, int &cy ) : int
SHGetFileInfo ( string pszPath, int dwFileAttributes, BExplorer &psfi, uint cbFileInfo, uint uFlags ) : IntPtr
SHGetImageList ( int iImageList, System.Guid &riid, IImageList &ppv ) : int
SHGetImageListHandle ( int iImageList, System.Guid &riid, IntPtr &handle ) : int
create ( ) : void

Creates the SystemImageList

isXpOrAbove ( ) : bool

Determines if the system is running Windows XP or above

Method Details

Dispose() public method

Clears up any resources associated with the SystemImageList
public Dispose ( ) : void
return void

Dispose() public method

Clears up any resources associated with the SystemImageList when disposing is true.
public Dispose ( bool disposing ) : void
disposing bool Whether the object is being disposed
return void

IconIndex() public method

Return the index of the icon for the specified file, always using the cached version where possible.
public IconIndex ( string fileName ) : int
fileName string Filename to get icon for
return int

IconIndex() public method

Returns the index of the icon for the specified file
public IconIndex ( string fileName, bool forceLoadFromDisk ) : int
fileName string Filename to get icon for
forceLoadFromDisk bool If True, then hit the disk to get the /// icon, /// otherwise only hit the disk if no cached icon is available.
return int

IconIndex() public method

Returns the index of the icon for the specified file
public IconIndex ( string fileName, bool forceLoadFromDisk, ShellIconStateConstants iconState ) : int
fileName string Filename to get icon for
forceLoadFromDisk bool If True, then hit the disk to get the /// icon, /// otherwise only hit the disk if no cached icon is available.
iconState ShellIconStateConstants Flags specifying the state of the icon /// returned.
return int

SysImageList() public method

Creates a Small Icons SystemImageList
public SysImageList ( ) : System
return System

SysImageList() public method

Creates a SystemImageList with the specified size
public SysImageList ( SysImageListSize size ) : System
size SysImageListSize Size of System ImageList
return System