C# Class AutoSquirrel.IconHelper

Afficher le fichier Open project: tenacious/Auto.Squirrel

Méthodes publiques

Méthode 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

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

Method Details

FindIconForFilename() public static méthode

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
Résultat System.Windows.Media.ImageSource

GetFolderIcon() public static méthode

public static GetFolderIcon ( IconSize size, FolderType folderType ) : Icon
size IconSize
folderType FolderType
Résultat System.Drawing.Icon

ToImageSource() public static méthode

public static ToImageSource ( this icon ) : System.Windows.Media.ImageSource
icon this
Résultat System.Windows.Media.ImageSource