---
title: "VObjectCollection..::.IndexOf Method (IVObject)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_VObjectCollection_IndexOf_1_37cb7bc6.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/)

# VObjectCollection.IndexOf Method (IVObject)
 
Searches for the specified v-object and returns the zero-based index of the first occurrence within the entire collection.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls.VectorObjects (in Aurigma.GraphicsMill.WinControls.VectorObjects.dll)
 
## Syntax
  
```
Public Function IndexOf ( _value As IVObject _
) As Integer
```
 
```csharp
public int IndexOf(IVObject value
)
```
 
### Parameters
 
 - value
     - Type: [Aurigma.GraphicsMill.WinControls.IVObject](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_IVObject.htm.md)
The v-object to locate in the collection.
 
### Return Value
A zero-based index of the first occurrence of the value within the entire collection, if found; otherwise, -1.
   
## See Also

### Reference

- [VObjectCollection Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_VObjectCollection.htm.md)
- [IndexOf Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_VObjectCollection_IndexOf.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
