---
title: "IImageList..::.SetImage Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_IImageList_SetImage_2_2d83b7f1.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# IImageList.SetImage Method 
 
Sets the specified bitmap for the specified key.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
 
## Syntax
  
```
Sub SetImage ( _image As Bitmap, _key As Object _
)
```
 
```csharp
void SetImage(Bitmap image,Object key
)
```
 
### Parameters
 
 - image
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
A [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) class instance representing the image that should be set for the provided key.

 - key
     - Type: [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
A key corresponding to the image.
   
## See Also

### Reference

- [IImageList Interface](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_IImageList.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
