C# Класс vbAccelerator.Components.ImageList.SysImageList

Summary description for SysImageList.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

Clears up any resources associated with the SystemImageList

Dispose ( bool disposing ) : void

Clears up any resources associated with the SystemImageList when disposing is true.

DrawImage ( IntPtr hdc, int index, int x, int y ) : void

Draws an image

DrawImage ( IntPtr hdc, int index, int x, int y, ImageListDrawItemConstants flags ) : void

Draws an image using the specified flags

DrawImage ( IntPtr hdc, int index, int x, int y, ImageListDrawItemConstants flags, int cx, int cy ) : void

Draws an image using the specified flags and specifies the size to clip to (or to stretch to if ILD_SCALE is provided).

DrawImage ( IntPtr hdc, int index, int x, int y, ImageListDrawItemConstants flags, int cx, int cy, System foreColor, ImageListDrawStateConstants stateFlags, System saturateColorOrAlpha, System glowOrShadowColor ) : void

Draws an image using the specified flags and state on XP systems.

Icon ( int index ) : Icon

Returns a GDI+ copy of the icon from the ImageList at the specified index.

IconIndex ( string fileName ) : int

Return the index of the icon for the specified file, always using the cached version where possible.

IconIndex ( string fileName, bool forceLoadFromDisk ) : int

Returns the index of the icon for the specified file

IconIndex ( string fileName, bool forceLoadFromDisk, ShellIconStateConstants iconState ) : int

Returns the index of the icon for the specified file

SysImageList ( ) : System

Creates a Small Icons SystemImageList

SysImageList ( SysImageListSize size ) : System

Creates a SystemImageList with the specified size

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

Метод Описание
DestroyIcon ( IntPtr hIcon ) : int
FormatMessage ( int dwFlags, IntPtr lpSource, int dwMessageId, int dwLanguageId, string lpBuffer, uint nSize, int argumentsLong ) : int
GetLastError ( ) : int
ImageList_Draw ( IntPtr hIml, int i, IntPtr hdcDst, int x, int y, int fStyle ) : int
ImageList_DrawIndirect ( IMAGELISTDRAWPARAMS &pimldp ) : int
ImageList_GetIcon ( IntPtr himl, int i, int flags ) : IntPtr
ImageList_GetIconSize ( IntPtr himl, int &cx, int &cy ) : int
SHGetFileInfo ( string pszPath, int dwFileAttributes, SHFILEINFO &psfi, uint cbFileInfo, uint uFlags ) : IntPtr
SHGetImageList ( int iImageList, System.Guid &riid, IImageList &ppv ) : int
SHGetImageListHandle ( int iImageList, System.Guid &riid, IntPtr &handle ) : int
create ( ) : void

Creates the SystemImageList

isXpOrAbove ( ) : bool

Determines if the system is running Windows XP or above

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

Dispose() публичный Метод

Clears up any resources associated with the SystemImageList
public Dispose ( ) : void
Результат void

Dispose() публичный Метод

Clears up any resources associated with the SystemImageList when disposing is true.
public Dispose ( bool disposing ) : void
disposing bool Whether the object is being disposed
Результат void

DrawImage() публичный Метод

Draws an image
public DrawImage ( IntPtr hdc, int index, int x, int y ) : void
hdc System.IntPtr Device context to draw to
index int Index of image to draw
x int X Position to draw at
y int Y Position to draw at
Результат void

DrawImage() публичный Метод

Draws an image using the specified flags
public DrawImage ( IntPtr hdc, int index, int x, int y, ImageListDrawItemConstants flags ) : void
hdc System.IntPtr Device context to draw to
index int Index of image to draw
x int X Position to draw at
y int Y Position to draw at
flags ImageListDrawItemConstants Drawing flags
Результат void

DrawImage() публичный Метод

Draws an image using the specified flags and specifies the size to clip to (or to stretch to if ILD_SCALE is provided).
public DrawImage ( IntPtr hdc, int index, int x, int y, ImageListDrawItemConstants flags, int cx, int cy ) : void
hdc System.IntPtr Device context to draw to
index int Index of image to draw
x int X Position to draw at
y int Y Position to draw at
flags ImageListDrawItemConstants Drawing flags
cx int Width to draw
cy int Height to draw
Результат void

DrawImage() публичный Метод

Draws an image using the specified flags and state on XP systems.
public DrawImage ( IntPtr hdc, int index, int x, int y, ImageListDrawItemConstants flags, int cx, int cy, System foreColor, ImageListDrawStateConstants stateFlags, System saturateColorOrAlpha, System glowOrShadowColor ) : void
hdc System.IntPtr Device context to draw to
index int Index of image to draw
x int X Position to draw at
y int Y Position to draw at
flags ImageListDrawItemConstants Drawing flags
cx int Width to draw
cy int Height to draw
foreColor System Fore colour to blend with when using the /// ILD_SELECTED or ILD_BLEND25 flags
stateFlags ImageListDrawStateConstants State flags
saturateColorOrAlpha System If stateFlags includes ILS_ALPHA, /// then the alpha component is applied to the icon. Otherwise if /// ILS_SATURATE is included, then the (R,G,B) components are used /// to saturate the image.
glowOrShadowColor System If stateFlags include ILS_GLOW, then /// the colour to use for the glow effect. Otherwise if stateFlags includes /// ILS_SHADOW, then the colour to use for the shadow.
Результат void

Icon() публичный Метод

Returns a GDI+ copy of the icon from the ImageList at the specified index.
public Icon ( int index ) : Icon
index int The index to get the icon for
Результат System.Drawing.Icon

IconIndex() публичный Метод

Return the index of the icon for the specified file, always using the cached version where possible.
public IconIndex ( string fileName ) : int
fileName string Filename to get icon for
Результат int

IconIndex() публичный Метод

Returns the index of the icon for the specified file
public IconIndex ( string fileName, bool forceLoadFromDisk ) : int
fileName string Filename to get icon for
forceLoadFromDisk bool If True, then hit the disk to get the icon, /// otherwise only hit the disk if no cached icon is available.
Результат int

IconIndex() публичный Метод

Returns the index of the icon for the specified file
public IconIndex ( string fileName, bool forceLoadFromDisk, ShellIconStateConstants iconState ) : int
fileName string Filename to get icon for
forceLoadFromDisk bool If True, then hit the disk to get the icon, /// otherwise only hit the disk if no cached icon is available.
iconState ShellIconStateConstants Flags specifying the state of the icon /// returned.
Результат int

SysImageList() публичный Метод

Creates a Small Icons SystemImageList
public SysImageList ( ) : System
Результат System

SysImageList() публичный Метод

Creates a SystemImageList with the specified size
public SysImageList ( SysImageListSize size ) : System
size SysImageListSize Size of System ImageList
Результат System