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.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 91.0.0.0
Syntax
Parameters
- indexOffset
- Type: System Int32
The offset from the current position.
Return Value
Type: ICogModelFeatureIteratorThe new iterator.
Exceptions
| Exception | Condition |
|---|---|
| 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