CogOCVMaxPattern GetCharacterCount Method Cognex VisionPro 9.21 SR1
Gets the number of characters in a line.

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

public int GetCharacterCount(
	int paragraphPosition,
	int linePosition
)

Parameters

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

Return Value

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

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