---
title: "ThumbnailListItem..::.GetIconKey Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ThumbnailListItem_GetIconKey_1_033ca863.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/)

# ThumbnailListItem.GetIconKey Method 
 
Returns a key of the item icon for the specified [View](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_VirtualListView_View.htm.md) of the [ThumbnailListView](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ThumbnailListView.htm.md) control.
 
**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
  
```
Public Overrides Function GetIconKey ( _view As View _
) As Object
```
 
```csharp
public override Object GetIconKey(View view
)
```
 
### Parameters
 
 - view
     - Type: [Aurigma.GraphicsMill.WinControls.View](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_View.htm.md)
A [View](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_View.htm.md) enumeration member identifying the view mode to extract an icon key for.
 
### Return Value
A key of the item icon in one of the control image lists. The image list depends on the specified view parameter. If the item has no icon for the specified view, **null** is returned.
 
### Implements
 
[IListItem.GetIconKey(View)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_IListItem_GetIconKey_1_033ca863.htm.md)
 
## Remarks
  
Although the return value **null** means that no icon is available, if you try to get an icon later, you may find out that it returns a correct index of the icon. This fact is explained by an asynchronous nature of item loading. Potentially, you can call this method before the control loads the item, and therefore it cannot return an icon. However, after you try to retrieve this item, its priority is increased (it is moved to the head of the item queue), and you can get the icon as soon as possible.
   
## See Also

### Reference

- [ThumbnailListItem Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ThumbnailListItem.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
