CogOCRMaxFont OnReplacingItem Method Cognex VisionPro
Called whenever a CogOCRMaxChar is being replaced.

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

protected override void OnReplacingItem(
	int index,
	Object oldValue,
	Object newValue
)

Parameters

index
Type: System Int32
The index where the CogOCRMaxChar is being repalced.
oldValue
Type: System Object
The CogOCRMaxChar being replaced
newValue
Type: System Object
The CogOCRMaxChar which is about to be added to the Font to replace the oldValue.
Exceptions

ExceptionCondition
ArgumentNullException Thrown if oldValue is null. Thrown if newValue is null.
Remarks

Overriden to keep track of the CogOCRMaxChars in a CogOCRMaxFont via StartTracking/StopTracking.

See Also