C# 클래스 BelhardTraining.LessonMultithreading.IconTools

Defines a set of utility methods for extracting icons for files and file types.
파일 보기 프로젝트 열기: bazile/Training

공개 메소드들

메소드 설명
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