C# Класс SystemImageList.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.

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

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

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

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