←Select platform

FindNearestItem Method

Summary

Gets the item nearest to the specified physical (in viewer pixel) coordinates.

Syntax
C#
VB
C++
public virtual ImageViewerItem FindNearestItem( 
   LeadPoint point 
) 
Public Overridable Function FindNearestItem( 
   ByVal point As LeadPoint 
) As ImageViewerItem 
public:  
   virtual ImageViewerItem^ FindNearestItem( 
      LeadPoint^ point 
   ) 

Parameters

point

The point in physical (in viewer pixel) coordinates.

Return Value

The item nearest to the point or null if the image viewer has no items.

Remarks

This method will first call HitTestItem and returns any item that is directly under the point. If this fails, then it will return the item that has its center nearest to the point.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly