←Select platform

HitTestZone Method

Summary

Gets the zero-based index of the zone under a certain point.

Syntax

C#
VB
WinRT C#
C++
int HitTestZone(  
   Leadtools.LeadPoint point 
) 
Function HitTestZone( _ 
   ByVal point As Leadtools.LeadPoint _ 
) As Integer 
int HitTestZone(  
   Leadtools.LeadPoint point 
) 
function Leadtools.Forms.Ocr.IOcrPage.HitTestZone(  
   point  
) 
int HitTestZone(  
   Leadtools.LeadPoint point 
)  

Parameters

point
The test point in pixels.

Return Value

The zero-based index of the zone under point, if no zone is under the test point, this method will return -1.

Remarks

You can use this method to check whether a zone (either added manually or automatically) is under a given test point. For example, if you have a Windows Forms based application with the current IOcrPage in a ImageViewer control. You might want to draw the zones on the surface of the viewer. For this, you can use the GetZoneBoundsInPixels methods. If you want to allow the user to click with the mouse on the viewer to select and de-select zones, you can use HitTestZone.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Ocr Assembly