CogBeadInspectPattern CurrentFindResultIndex Property Cognex VisionPro 9.8
Gets or sets the index of the result within the FindResults property to use when calling the SetCoarseContour(CogGeneralContour) method.

Namespace: Cognex.VisionPro.EdgeInspect
Assembly: Cognex.VisionPro.EdgeInspect (in Cognex.VisionPro.EdgeInspect.dll) Version: 75.1.0.0
Syntax

public int CurrentFindResultIndex { get; set; }

Property Value

Type: Int32
Default value is -1. This is set to 0 every time that the Find  method is called.
Exceptions

ExceptionCondition
ArgumentOutOfRangeException The supplied value is less than 0 or greater or equal to 5.
Remarks

This property does not check that this value is within the valid range of indices for FindResults, that check is performed by the SetCoarseContour(CogGeneralContour) method.

This property is independent of the FindResultIndexUsedInTrain property. While they refer to the same collection, the two indices are utilized in different methods.

See Also