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

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

public void MoveToPosition(
	int Position
)

Parameters

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

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