---
title: "IImageList..::.RemoveByKey Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_IImageList_RemoveByKey_1_d02429b3.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.RemoveByKey Method 
 
Removes an image with the specified key from the list.
 
**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 RemoveByKey ( _key As Object _
)
```
 
```csharp
void RemoveByKey(Object key
)
```
 
### Parameters
 
 - key
     - Type: [System.Object](http://msdn2.microsoft.com/en-us/e5kfa45b)
The key of the image to remove.
 
## Remarks
  
If the list does not contain an image with the specified key, the list remains unchanged. No exception is thrown.
   
## 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)
