---
title: "ListItemCollection..::.IndexOf Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_ListItemCollection_IndexOf_1_674925c8.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/)

# ListItemCollection.IndexOf Method 
 
Returns an index of the specified item in the collection.
 
**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 Function IndexOf ( _value As IListItem _
) As Integer
```
 
```csharp
public int IndexOf(IListItem value
)
```
 
### Parameters
 
 - value
     - Type: [Aurigma.GraphicsMill.WinControls.IListItem](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_IListItem.htm.md)
The list item object to locate in the collection.
 
### Return Value
A zero-based index of specified item object in the collection, if found; otherwise, -1.
   
## See Also

### Reference

- [ListItemCollection Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_ListItemCollection.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
