C# Class ZForge.Controls.ExplorerBar.ThemeManager

A class that extracts theme settings from Windows XP shellstyle dlls
Afficher le fichier Open project: zhuangyy/Motion

Méthodes publiques

Méthode Description
GetSystemExplorerBarSettings ( ) : ExplorerBarInfo

Gets the System defined settings for the ExplorerBar according to the current System theme

GetSystemExplorerBarSettings ( bool useClassicTheme ) : ExplorerBarInfo

Gets the System defined settings for the ExplorerBar according to the current System theme

GetSystemExplorerBarSettings ( string stylePath ) : ExplorerBarInfo

Gets the System defined settings for the ExplorerBar specified by the shellstyle.dll at the specified path

IconToBitmap ( Icon icon ) : Bitmap

Converts an Icon to a Bitmap

Private Methods

Méthode Description
ConvertByteArrayToImage ( byte bytes ) : Image

Converts a byte array to an Image

ConvertByteArrayToObject ( byte bytes ) : object

Converts a byte array to an object

ConvertColorToString ( Color color ) : string

Converts a Color to a string representation

ConvertImageToByteArray ( Image image ) : byte[]

Converts an Image to a byte array

ConvertObjectToByteArray ( object obj ) : byte[]

Converts an object to a byte array

ConvertStringToColor ( string col ) : Color

Converts a string to a color

ConvertToBitmap ( Icon icon ) : Bitmap

Converts an Icon to a Bitmap

FreeShellStyleDll ( ) : void

Removes the ShellStyle.dll from memory. Assumes that LoadShellStyleDll() was successful

GetResourceBMP ( string resourceName ) : Bitmap

Returns a Bitmap from the currently loaded ShellStyle.dll

GetResourcePNG ( string resourceName ) : Bitmap

Returns a Png Bitmap from the currently loaded ShellStyle.dll

GetResourceString ( int id ) : string

Returns a string from the currently loaded ShellStyle.dll

GetResourceUIFile ( ) : string

Extracts the UIFILE from the currently loaded ShellStyle.dll

GetShellStylePath ( ) : string

Returns a string that specifies the path to the shellstyle.dll accordingto the current theme

LoadShellStyleDll ( ) : bool

Loads the ShellStyle.dll into memory as determined by the current system theme

LoadShellStyleDll ( string stylePath ) : bool

Loads the specified ShellStyle.dll into memory

Method Details

GetSystemExplorerBarSettings() public static méthode

Gets the System defined settings for the ExplorerBar according to the current System theme
public static GetSystemExplorerBarSettings ( ) : ExplorerBarInfo
Résultat ExplorerBarInfo

GetSystemExplorerBarSettings() public static méthode

Gets the System defined settings for the ExplorerBar according to the current System theme
public static GetSystemExplorerBarSettings ( bool useClassicTheme ) : ExplorerBarInfo
useClassicTheme bool Specifies whether the current system theme /// should be ignored and return unthemed settings
Résultat ExplorerBarInfo

GetSystemExplorerBarSettings() public static méthode

Gets the System defined settings for the ExplorerBar specified by the shellstyle.dll at the specified path
public static GetSystemExplorerBarSettings ( string stylePath ) : ExplorerBarInfo
stylePath string The path to the shellstyle.dll
Résultat ExplorerBarInfo

IconToBitmap() public static méthode

Converts an Icon to a Bitmap
public static IconToBitmap ( Icon icon ) : Bitmap
icon System.Drawing.Icon The Icon to be converted
Résultat System.Drawing.Bitmap