C# Class VsTeXProject.VisualStudio.Project.ImageHandler

Inheritance: IDisposable
Show file Open project: mimura1133/vstex Class Usage Examples

Public Methods

Method Description
AddImage ( Image image ) : void

Add an image to the ImageHandler.

Close ( ) : void

Closes the ImageHandler object freeing its resources.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetIconHandle ( int iconIndex ) : IntPtr

Returns the handle to an icon build from the image of index iconIndex in the image list.

ImageHandler ( ImageList list ) : System

Builds an ImageHandler object from an ImageList object.

ImageHandler ( Stream resourceStream ) : System

Builds an ImageHandler object from a Stream providing the bitmap that stores the images for the image list.

Private Methods

Method Description
Dispose ( bool disposing ) : void
ImageHandler ( ) : System
InitHandlesList ( ) : void

Method Details

AddImage() public method

Add an image to the ImageHandler.
public AddImage ( Image image ) : void
image Image the image object to be added.
return void

Close() public method

Closes the ImageHandler object freeing its resources.
public Close ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

GetIconHandle() public method

Returns the handle to an icon build from the image of index iconIndex in the image list.
public GetIconHandle ( int iconIndex ) : IntPtr
iconIndex int
return System.IntPtr

ImageHandler() public method

Builds an ImageHandler object from an ImageList object.
public ImageHandler ( ImageList list ) : System
list System.Windows.Forms.ImageList
return System

ImageHandler() public method

Builds an ImageHandler object from a Stream providing the bitmap that stores the images for the image list.
public ImageHandler ( Stream resourceStream ) : System
resourceStream Stream
return System