C# Class AutoSquirrel.IconHelper

Datei anzeigen Open project: tenacious/Auto.Squirrel

Public Methods

Method Description
FindIconForFilename ( string fileName, bool large ) : System.Windows.Media.ImageSource

Get an icon for a given filename

GetFolderIcon ( IconSize size, FolderType folderType ) : Icon
ToImageSource ( this icon ) : System.Windows.Media.ImageSource

Private Methods

Method Description
DestroyIcon ( IntPtr hIcon ) : bool
SHGetFileInfo ( string pszPath, uint dwFileAttributes, SHFILEINFO &psfi, uint cbFileInfo, uint uFlags ) : IntPtr

Method Details

FindIconForFilename() public static method

Get an icon for a given filename
public static FindIconForFilename ( string fileName, bool large ) : System.Windows.Media.ImageSource
fileName string any filename
large bool 16x16 or 32x32 icon
return System.Windows.Media.ImageSource

GetFolderIcon() public static method

public static GetFolderIcon ( IconSize size, FolderType folderType ) : Icon
size IconSize
folderType FolderType
return System.Drawing.Icon

ToImageSource() public static method

public static ToImageSource ( this icon ) : System.Windows.Media.ImageSource
icon this
return System.Windows.Media.ImageSource