C# Класс BelhardTraining.LessonMultithreading.IconTools

Defines a set of utility methods for extracting icons for files and file types.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetIconForExtension() публичный статический Метод

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.
Результат System.Drawing.Icon

GetIconForFile() публичный статический Метод

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.
Результат System.Drawing.Icon