←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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.WinForms Assembly