CogOCVMaxPattern AddText Method ( Int32 , CogOCVMaxLineIterator)Cognex VisionPro 9.5
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: 69.0.0.0
Syntax

public void AddText(
	int[] srcText,
	CogOCVMaxLineIterator pNext
)

Parameters

srcText
Type:  System Int32 
An System::Array of System::Int32. May not be NULL. Each element in this array is the key value of a character in the text that makes up the single line to be inserted.
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
ArgumentExceptionIf the supplied line iterator does not reference this CogOCVMaxPattern object.
ObjectDisposedExceptionIf this CogOCVMaxPattern object has already been disposed.
InvalidOperationExceptionIf the line iterator does not specify a valid position.
ArgumentNullExceptionIf pNext argument is NULL.
Remarks

This new line contains characters whose key values are supplied by the array. An empty input array of integers is interpreted as a blank line.

See Also