CogOCVMaxPattern AddText Method ( Int32 , CogOCVMaxParagraphIterator)Cognex VisionPro 9.20
Creates a new paragraph and inserts it in the arrangement at the position specified by the paragraph iterator.

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

public void AddText(
	int[] srcText,
	CogOCVMaxParagraphIterator 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 of the new paragraph to be appended to the arrangement.
pNext
Type: Cognex.VisionPro.OCVMax CogOCVMaxParagraphIterator
A CogOCVMaxParagraphIterator which specifies where in the current arrangement the new paragraph should be inserted. May not be NULL.
Events

Exceptions

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

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

See Also