CogOCVMaxRunParams GetCharacterCount Method (Int32, Int32)Cognex VisionPro
Gets the number of characters in the specified line of the specified paragraph of this object's internal arrangement description.

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

public int GetCharacterCount(
	int paragraphPosition,
	int linePosition
)

Parameters

paragraphPosition
Type: System Int32
A zero-based index that specifies the position of the paragraph of interest.
linePosition
Type: System Int32
A zero-based index that specifies the position of the line of interest within the paragraph of interest.

Return Value

Type: Int32
The number of characters in the line.
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionIf the linePosition argument is less than zero or greater than or equal to the number of lines in the specified paragraph as described in this CogOCVMaxRunParams object.
ObjectDisposedExceptionIf this CogOCVMaxRunParams object has already been disposed.
Remarks

This value is typically set by a call to SetArrangementFromPattern(CogOCVMaxPattern).

See Also