C# Class UlteriusServer.Utilities.IconTools

Defines a set of utility methods for extracting icons for files and file types.
Afficher le fichier Open project: Ulterius/server

Méthodes publiques

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

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.
Résultat System.Drawing.Icon

GetIconForFile() public static méthode

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.
Résultat System.Drawing.Icon