Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 85.1.0.0
Parameters
- position
- Type: System Int32
The position to move to. Zero moves to the beginning of the sequence, and −1 moves to the end of the sequence.
Implements
ICogGeneralContourLineSegmentIterator MoveToPosition(Int32)| Exception | Condition |
|---|---|
| CogIteratorInvalidPositionException | position is out of range or not a valid value. |
| CogIteratorInvalidIteratorException | The iterator is not valid because the item set has changed. For example, the iterator is pointing to an item that was removed from the Container. |
Moves the iterator to the specified position in the sequence, loading that item's properties into this iterator.
Use Position to obtain valid positions within the sequence.
If position is zero, the iterator moves to the beginning of the sequence. If position is −1 it moves to the end of the sequence. However, position is not necessarily an item index into the iterator.