CogReadOnlyCollectionWithCustomSerialization T  IndexOf Method Cognex VisionPro 9.22
Searches the collection for the specified object and returns the zero-based index of the first occurrence.

Namespace: Cognex.VisionPro.Implementation
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 87.0.0.0 (87.0.0.0)
Syntax

public virtual int IndexOf(
	T item
)

Parameters

item
Type: T
The object to locate.

Return Value

Type: Int32
The zero based index of the first occurrence of item withing the collection, if found; otherwise, -1
See Also