---
title: "ListItem..::.HasIcon Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ListItem_HasIcon_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/)

# ListItem.HasIcon Method 
 
Returns value indicating whether the item has an icon for specified view mode of the [ThumbnailListView](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ThumbnailListView.htm.md).
 
**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 MustOverride Function HasIcon ( _view As View _
) As Boolean
```
 
```csharp
public abstract bool HasIcon(View view
)
```
 
### Parameters
 
 - view
     - Type: [Aurigma.GraphicsMill.WinControls.View](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_View.htm.md)
 [View](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_View.htm.md) enumeration member which specifies a view mode to check out an icon for.
 
### Return Value
 **true** if item contains icon for the specified *view*, otherwise **false**.
 
### Implements
 
[IListItem.HasIcon(View)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_IListItem_HasIcon_1_033ca863.htm.md)
 
## Remarks
  
Although return value = -1 means that no icon 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 asynchronous nature of the 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 get this item, its priority is increased (i.e. it is moved to the head of the items queue) and you can get it as soon as possible.
   
## See Also

### Reference

- [ListItem Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ListItem.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
