C# Class Microsoft.VisualStudio.Project.ImageHandler

Inheritance: IDisposable
Mostra file Open project: tunnelvisionlabs/MPFProj10 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 ( ) : System

Builds an empty ImageHandler object.

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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void
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

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
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 empty ImageHandler object.
public ImageHandler ( ) : System
return System

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

InitHandlesList() protected method

protected InitHandlesList ( ) : void
return void