findNearestItem Method (ImageViewer)

Summary

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

Syntax

JavaScript Syntax
ImageViewer.prototype.findNearestItem = function(point)
TypeScript Syntax
findNearestItem(point: LeadPointD): ImageViewerItem;

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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Controls Assembly
Click or drag to resize