C# Класс ZForge.Controls.ExplorerBar.ThemeManager

A class that extracts theme settings from Windows XP shellstyle dlls
Показать файл Открыть проект

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

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

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

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

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

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

Gets the System defined settings for the ExplorerBar according to the current System theme
public static GetSystemExplorerBarSettings ( ) : ExplorerBarInfo
Результат ExplorerBarInfo

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

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
Результат ExplorerBarInfo

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

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
Результат ExplorerBarInfo

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

Converts an Icon to a Bitmap
public static IconToBitmap ( Icon icon ) : Bitmap
icon System.Drawing.Icon The Icon to be converted
Результат System.Drawing.Bitmap