CogOCVMaxPattern AddText Method (String, CogOCVMaxCharacterIterator)Cognex VisionPro 9.7
Inserts one or more characters at the character position specified by the character iterator.

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

public void AddText(
	string srcText,
	CogOCVMaxCharacterIterator pNext
)

Parameters

srcText
Type: System String
A string containing the characters to be inserted. May not be NULL. This assumes that the character keys in the associated font correspond to Unicode code point values.
pNext
Type: Cognex.VisionPro.OCVMax CogOCVMaxCharacterIterator
A CogOCVMaxCharacterIterator which specifies the character position at which the new characters should be inserted. May not be NULL.
Events

Exceptions

ExceptionCondition
ArgumentExceptionIf the supplied character iterator does not reference this CogOCVMaxPattern object.
ArgumentNullExceptionIf pNext argument is NULL.
InvalidOperationExceptionIf the character iterator does not specify a valid position.
ObjectDisposedExceptionIf this CogOCVMaxPattern object has already been disposed.
See Also