CogOCVMaxLineIterator MoveToPosition Method Cognex VisionPro 9.7
Move the line iterator to the specified position within the containing paragraph. If the argument is zero, move to the first line position in the paragraph. If the argument is -1, move to the end line position in the paragraph. An exception is generated if the argument is not valid.

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

public void MoveToPosition(
	int Position
)

Parameters

Position
Type: System Int32
A System::Int32 index into the enclosing paragraph.
Exceptions

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