C# Class BlackFox.Win32.Icons

Afficher le fichier Open project: headswe/DreamEdit

Méthodes publiques

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

Private Methods

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

Method Details

Extract() public static méthode

public static Extract ( string fileName, SystemIconSize size ) : List
fileName string
size SystemIconSize
Résultat List

Extract() public static méthode

public static Extract ( string fileName, List largeIcons, List smallIcons ) : void
fileName string
largeIcons List
smallIcons List
Résultat void

ExtractEx() public static méthode

public static ExtractEx ( string fileName, SystemIconSize size, int firstIconIndex, int iconCount ) : List
fileName string
size SystemIconSize
firstIconIndex int
iconCount int
Résultat List

ExtractEx() public static méthode

public static ExtractEx ( string fileName, List largeIcons, List smallIcons, int firstIconIndex, int iconCount ) : void
fileName string
largeIcons List
smallIcons List
firstIconIndex int
iconCount int
Résultat void

ExtractFromRegistryString() public static méthode

public static ExtractFromRegistryString ( string regString, SystemIconSize size ) : Icon
regString string
size SystemIconSize
Résultat System.Drawing.Icon

ExtractInformationsFromRegistryString() public static méthode

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.
Résultat void

ExtractOne() public static méthode

public static ExtractOne ( string fileName, int index, SystemIconSize size ) : Icon
fileName string
index int
size SystemIconSize
Résultat System.Drawing.Icon

ExtractOne() public static méthode

public static ExtractOne ( string fileName, int index, Icon &largeIcon, Icon &smallIcon ) : void
fileName string
index int
largeIcon System.Drawing.Icon
smallIcon System.Drawing.Icon
Résultat void

IconFromExtension() public static méthode

public static IconFromExtension ( string extension, SystemIconSize size ) : Icon
extension string
size SystemIconSize
Résultat System.Drawing.Icon

IconFromExtensionShell() public static méthode

public static IconFromExtensionShell ( string extension, SystemIconSize size ) : Icon
extension string
size SystemIconSize
Résultat System.Drawing.Icon

IconFromResource() public static méthode

public static IconFromResource ( string resourceName ) : Icon
resourceName string
Résultat System.Drawing.Icon