ICogGeneralContourLineSegmentIterator MoveToPrevious Method Cognex VisionPro 9.21
Moves the iterator to the previous position, loading that item's properties into this iterator. If there are no items before this, an error is returned. To avoid getting errors, you may wish to check IsFirst.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 83.0.0.0
Syntax

void MoveToPrevious()
Exceptions

ExceptionCondition
CogIteratorEndOfContainerException

The iterator is at the beginning. (IsFirst is True.)

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.

Remarks

Moves the iterator to the previous position, loading that item's properties into this iterator.

If there are no items before the current position, MoveToPrevious  returns an error. You may wish to check IsFirst before calling MoveToPrevious  to avoid errors.

See Also