CogOCVMaxPattern AddText Method (String, CogOCVMaxLineIterator)Cognex VisionPro 9.21
Creates a new line and inserts it at the line position specified by the line iterator.

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

public void AddText(
	string srcText,
	CogOCVMaxLineIterator pNext
)

Parameters

srcText
Type: System String
A single string corresponding to the single line 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 CogOCVMaxLineIterator
A CogOCVMaxLineIterator which specifies the line position at which the new line should be inserted. May not be NULL.
Events

Exceptions

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

This new line contains characters specified by srcText. An empty string (length zero) is interpreted as a blank line.

See Also