---
title: "Collection&lt;(Of &lt;(T&gt;)&gt;)..::.IndexOf Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601_IndexOf_1_38a52f19.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/)

# Collection&lt;T&gt;.IndexOf Method 
 
Searches for the specified item and returns the zero-based index of the first occurrence within the entire [Collection&lt;T&gt;](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md).
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```
Public Function IndexOf ( _item As T _
) As Integer
```
 
```csharp
public int IndexOf(T item
)
```
 
### Parameters
 
 - item
     - Type: [T](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md)
The item to locate in the [Collection&lt;T&gt;](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md).
 
### Return Value
 
The zero-based index of the first occurrence of item within the entire [Collection&lt;T&gt;](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md), if found; otherwise, �1.
 
### Implements
 
[IList&lt;T&gt;.IndexOf(T)](http://msdn2.microsoft.com/en-us/3w0148af)
   
## See Also

### Reference

- [Collection&lt;T&gt; Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection%601.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
