C# Class BelhardTraining.LessonMultithreading.IconTools

Defines a set of utility methods for extracting icons for files and file types.
Exibir arquivo Open project: bazile/Training

Public Methods

Method Description
GetIconForExtension ( string extension, ShellIconSize size ) : Icon

Returns the default icon representation for files with the specified extension.

GetIconForFile ( string filename, ShellIconSize size ) : Icon

Returns an icon representation of the specified file.

Method Details

GetIconForExtension() public static method

Returns the default icon representation for files with the specified extension.
public static GetIconForExtension ( string extension, ShellIconSize size ) : Icon
extension string File extension (including the leading period).
size ShellIconSize The desired size of the icon.
return System.Drawing.Icon

GetIconForFile() public static method

Returns an icon representation of the specified file.
public static GetIconForFile ( string filename, ShellIconSize size ) : Icon
filename string The path to the file.
size ShellIconSize The desired size of the icon.
return System.Drawing.Icon