CogOCVMaxPattern GetLineCount Method Cognex VisionPro 9.10
Gets the number of lines in a paragraph.

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

public int GetLineCount(
	int paragraphPosition
)

Parameters

paragraphPosition
Type: System Int32
A zero-based index that specifies which paragraph to use.

Return Value

Type: Int32
The number of lines in the specified paragraph.
Exceptions

ExceptionCondition
ObjectDisposedExceptionIf this CogOCVMaxPattern object has already been disposed.
ArgumentOutOfRangeExceptionIf the suppled paragraphPosition argument is less than zero or greater than or equal to the number of paragraphs.
See Also