CogOCVMaxCharacterIterator MoveToPosition Method Cognex VisionPro
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: 65.1.0.0
Syntax

public void MoveToPosition(
	int Position
)

Parameters

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

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