CogOCVMaxPattern RemoveLine Method Cognex VisionPro 9.22 SR1
Removes the line specified by the supplied line iterator from the arrangement.

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

public void RemoveLine(
	CogOCVMaxLineIterator pTarget
)

Parameters

pTarget
Type: Cognex.VisionPro.OCVMax CogOCVMaxLineIterator
A CogOCVMaxLineIterator that specifies the line to remove. May not be NULL.
Events

Exceptions

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

If line iterator references the only line in a paragraph, the entire paragraph is removed from the arrangement.

See Also