CogOCVMaxRunParams GetLineCount Method (Int32)Cognex VisionPro 9.7
Gets the number of lines in the specified paragraph of this object's internal arrangement description.

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

public int GetLineCount(
	int paragraphPosition
)

Parameters

paragraphPosition
Type: System Int32
The zero-based index that specifies the position of the paragraph of interest.

Return Value

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

ExceptionCondition
ArgumentOutOfRangeExceptionIf the paragraphPosition argument is less than zero or greater than or equal to the number of paragraphs described in this CogOCVMaxRunParams object.
ObjectDisposedExceptionIf this CogOCVMaxRunParams object has already been disposed.
Remarks

The number of lines is typically set by a call to SetArrangementFromPattern(CogOCVMaxPattern).

See Also