CogGeneralContourEllipticalArcSegmentIterator MoveToPosition Method Cognex VisionPro
Moves the iterator to the specified position in the sequence, loading that item's properties into this iterator.

Namespace: Cognex.VisionPro.Implementation.Internal
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax

public virtual void MoveToPosition(
	int position
)

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

ICogGeneralContourEllipticalArcSegmentIterator MoveToPosition(Int32)
Exceptions

ExceptionCondition
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.

Remarks

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.

See Also