C# Класс BlackFox.Win32.Icons

Показать файл Открыть проект

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

Метод Описание
Extract ( string fileName, SystemIconSize size ) : List
Extract ( string fileName, List largeIcons, List smallIcons ) : void
ExtractEx ( string fileName, SystemIconSize size, int firstIconIndex, int iconCount ) : List
ExtractEx ( string fileName, List largeIcons, List smallIcons, int firstIconIndex, int iconCount ) : void
ExtractFromRegistryString ( string regString, SystemIconSize size ) : Icon
ExtractInformationsFromRegistryString ( string regString, string &fileName, int &index ) : void

Parse strings in registry who contains the name of the icon and the index of the icon an return both parts.

ExtractOne ( string fileName, int index, SystemIconSize size ) : Icon
ExtractOne ( string fileName, int index, Icon &largeIcon, Icon &smallIcon ) : void
IconFromExtension ( string extension, SystemIconSize size ) : Icon
IconFromExtensionShell ( string extension, SystemIconSize size ) : Icon
IconFromResource ( string resourceName ) : Icon

Приватные методы

Метод Описание
ExtractIconEx ( [ lpszFile, int nIconIndex, IntPtr phIconLarge, IntPtr phIconSmall, int nIcons ) : int
GetIconsCountInFile ( string fileName ) : int

Get the number of icons in the specified file.

SHGetFileInfo ( string pszPath, int dwFileAttributes, SHFILEINFO &psfi, int cbFileInfo, FileInfoFlags uFlags ) : IntPtr

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

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

public static Extract ( string fileName, SystemIconSize size ) : List
fileName string
size SystemIconSize
Результат List

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

public static Extract ( string fileName, List largeIcons, List smallIcons ) : void
fileName string
largeIcons List
smallIcons List
Результат void

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

public static ExtractEx ( string fileName, SystemIconSize size, int firstIconIndex, int iconCount ) : List
fileName string
size SystemIconSize
firstIconIndex int
iconCount int
Результат List

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

public static ExtractEx ( string fileName, List largeIcons, List smallIcons, int firstIconIndex, int iconCount ) : void
fileName string
largeIcons List
smallIcons List
firstIconIndex int
iconCount int
Результат void

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

public static ExtractFromRegistryString ( string regString, SystemIconSize size ) : Icon
regString string
size SystemIconSize
Результат System.Drawing.Icon

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

Parse strings in registry who contains the name of the icon and the index of the icon an return both parts.
public static ExtractInformationsFromRegistryString ( string regString, string &fileName, int &index ) : void
regString string The full string in the form "path,index" as found in registry.
fileName string The "path" part of the string.
index int The "index" part of the string.
Результат void

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

public static ExtractOne ( string fileName, int index, SystemIconSize size ) : Icon
fileName string
index int
size SystemIconSize
Результат System.Drawing.Icon

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

public static ExtractOne ( string fileName, int index, Icon &largeIcon, Icon &smallIcon ) : void
fileName string
index int
largeIcon System.Drawing.Icon
smallIcon System.Drawing.Icon
Результат void

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

public static IconFromExtension ( string extension, SystemIconSize size ) : Icon
extension string
size SystemIconSize
Результат System.Drawing.Icon

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

public static IconFromExtensionShell ( string extension, SystemIconSize size ) : Icon
extension string
size SystemIconSize
Результат System.Drawing.Icon

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

public static IconFromResource ( string resourceName ) : Icon
resourceName string
Результат System.Drawing.Icon