ICogGeneralContourLineSegmentIterator MoveToNext Method Cognex VisionPro 9.23
Moves the iterator to the next position, loading that item's properties into this iterator. If the iterator is at the end position, an error is returned. To avoid getting errors, you may wish to check IsEnd.

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

void MoveToNext()
Exceptions

ExceptionCondition
CogIteratorEndOfContainerException

The iterator is at the end. (IsEnd 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 next position, loading that item's properties into this iterator.

If the iterator is at the end position, MoveToNext  returns an error. You may wish to check IsEnd before calling MoveToNext  to avoid errors.

See Also