C# Class Explorer.ShellFileInfo

Mostrar archivo Open project: SummerWish/vfs

Public Methods

Method Description
GetFileIcon ( string name, IconSize size, bool linkOverlay ) : Bitmap
GetFileTypeDescription ( string fileNameOrExtension ) : string
GetFolderIcon ( IconSize size, FolderType folderType ) : Bitmap

Used to access system folder icons.

Private Methods

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

Method Details

GetFileIcon() public static method

public static GetFileIcon ( string name, IconSize size, bool linkOverlay ) : Bitmap
name string
size IconSize
linkOverlay bool
return System.Drawing.Bitmap

GetFileTypeDescription() public static method

public static GetFileTypeDescription ( string fileNameOrExtension ) : string
fileNameOrExtension string
return string

GetFolderIcon() public static method

Used to access system folder icons.
public static GetFolderIcon ( IconSize size, FolderType folderType ) : Bitmap
size IconSize Specify large or small icons.
folderType FolderType Specify open or closed FolderType.
return System.Drawing.Bitmap