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.OCVMaxAssembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 73.0.0.0
Syntax
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: CogOCVMaxLineIteratorA CogOCVMaxLineIterator corresponding to the specified line position within the containing paragraph.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | If the line position index computed from the supplied argument is less than zero or greater than the number of lines in the enclosing paragraph. |
| ObjectDisposedException | If the associated CogOCVMaxPattern object has already been disposed. |
| InvalidOperationException | If this line iterator cannot be found. |
See Also