CogOCVMaxPattern RemoveLine Method Cognex VisionPro
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: 65.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
ObjectDisposedExceptionIf this CogOCVMaxPattern object has already been disposed.
InvalidOperationExceptionIf the line iterator does not specify a valid position.
ArgumentExceptionIf the supplied line iterator does not reference this CogOCVMaxPattern object.
ArgumentNullExceptionIf pTarget argument is NULL.
Remarks

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

See Also