ICogModelFeatureIterator Copy Method Cognex VisionPro 9.22
Makes a copy of this iterator. The copy will be positioned at the same item as this plus the given IndexOffset. For example, if IndexOffset is +1 the copy will be positioned at the next item, if IndexOffset is -1, the copy will be at the previous item.

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

ICogModelFeatureIterator Copy(
	int indexOffset
)

Parameters

indexOffset
Type: System Int32

The offset from the current position.

Return Value

Type: ICogModelFeatureIterator

The new iterator.

Exceptions

ExceptionCondition
CogIteratorEndOfContainerException

indexOffset would place the iterator beyond the end iterator (IsEnd is True) or before the start iterator (IsFirst is True).

CogIteratorInvalidIteratorException

The iterator is not valid; however if IsEnd is True (and there are no other errors), this iterator will be copied.

Remarks

Makes a copy of this iterator. The copy is positioned at the same item as this item plus the given indexOffset. For example, if indexOffset is +1 the copy will be positioned at the next item; if indexOffset is −1, the copy will be at the previous item.

See Also