CogOCVMaxParagraphIterator Copy Method (Int32)Cognex VisionPro
Return a newly created paragraph iterator corresponding to the specified paragraph position within the same enclosing CogOCVMaxPattern object as this paragraph iterator. The argument is a positional offset from the current paragraph position, so a value of zero will yield a new paragraph iterator that is functionally identical to this one.

Namespace: Cognex.VisionPro.OCVMax
Assembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 65.1.0.0
Syntax

public CogOCVMaxParagraphIterator Copy(
	int PositionOffset
)

Parameters

PositionOffset
Type: System Int32
A System::Int32 that is added to the paragraph position index of this paragraph iterator to yield a new paragraph position index within the enclosing CogOCVMaxPattern object. If this computation results in a paragraph position index that is not valid, an exception is generated.

Return Value

Type: CogOCVMaxParagraphIterator
A CogOCVMaxParagraphIterator corresponding to the specified paragraph position within the containing CogOCVMaxPattern object.
Exceptions

ExceptionCondition
InvalidOperationExceptionIf this paragraph iterator cannot be found.
ArgumentOutOfRangeExceptionIf the paragraph position index computed from the supplied argument is less than zero or greater than the number of paragraphs in the enclosing CogOCVMaxPattern object.
ObjectDisposedExceptionIf the associated CogOCVMaxPattern object has already been disposed.
See Also