Creates a character iterator that corresponds to the initial character position in the specified line in the specified paragraph.
Namespace: Cognex.VisionPro.OCVMaxAssembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 87.0.0.0
public CogOCVMaxCharacterIterator CreateCharacterIterator(
int paragraphPosition,
int linePosition
)
public CogOCVMaxCharacterIterator CreateCharacterIterator(
int paragraphPosition,
int linePosition
)
Public Function CreateCharacterIterator (
paragraphPosition As Integer,
linePosition As Integer
) As CogOCVMaxCharacterIterator
Public Function CreateCharacterIterator (
paragraphPosition As Integer,
linePosition As Integer
) As CogOCVMaxCharacterIterator
public:
CogOCVMaxCharacterIterator^ CreateCharacterIterator(
int paragraphPosition,
int linePosition
)
public:
CogOCVMaxCharacterIterator^ CreateCharacterIterator(
int paragraphPosition,
int linePosition
)
Parameters
- paragraphPosition
- Type: System Int32
A zero-based index that specifies the paragraph.
- linePosition
- Type: System Int32
A zero-based index that specifies the line.
Return Value
Type:
CogOCVMaxCharacterIteratorA character iterator that corresponds to the specified character.
| Exception | Condition |
|---|
| ObjectDisposedException | If this CogOCVMaxPattern object has already been disposed. |
It is legal to call this method with the index of a line that contains no characters. The IsInvalid, IsEnd, and IsFirst properties of the resulting iterator will all be True. Attempts to access any other property on this iterator will cause an exception to be thrown. This iterator may be supplied as an argument in a subsequent call to AddText.