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

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

public CogOCVMaxLineIterator Copy(
	int PositionOffset
)

Parameters

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

Return Value

Type: CogOCVMaxLineIterator
A CogOCVMaxLineIterator corresponding to the specified line position within the containing paragraph.
Exceptions

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