C# Class APG.CodeHelper.IconHelper.IconListManager

Show file Open project: UGTU/UGTUKadrProject

Public Methods

Method Description
AddFileIcon ( string filePath ) : int

Called publicly to add a file's icon to the ImageList.

ClearLists ( ) : void

Clears any ImageLists that IconListManager is managing.

IconListManager ( System imageList, IconReader iconSize ) : System

Creates an instance of IconListManager that will add icons to a single ImageList using the specified IconSize.

IconListManager ( System smallImageList, System largeImageList ) : System

Creates an instance of IconListManager that will add icons to two ImageList types. The two image lists are intended to be one for large icons, and the other for small icons.

Private Methods

Method Description
AddExtension ( string Extension, int ImageListPosition ) : void

Used internally, adds the extension to the hashtable, so that its value can then be returned.

Method Details

AddFileIcon() public method

Called publicly to add a file's icon to the ImageList.
public AddFileIcon ( string filePath ) : int
filePath string Full path to the file.
return int

ClearLists() public method

Clears any ImageLists that IconListManager is managing.
public ClearLists ( ) : void
return void

IconListManager() public method

Creates an instance of IconListManager that will add icons to a single ImageList using the specified IconSize.
public IconListManager ( System imageList, IconReader iconSize ) : System
imageList System ImageList to add icons to.
iconSize IconReader Size to use (either 32 or 16 pixels).
return System

IconListManager() public method

Creates an instance of IconListManager that will add icons to two ImageList types. The two image lists are intended to be one for large icons, and the other for small icons.
public IconListManager ( System smallImageList, System largeImageList ) : System
smallImageList System The ImageList that will hold small icons.
largeImageList System The ImageList that will hold large icons.
return System