This documentation is for the old version. Go to the latest Graphics Mill docs

VirtualListView.FindNearestItem Method (Point)

Finds the item nearest to the specified coordinates. Search is supported only in icon and list modes.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)

Syntax

Visual Basic
Public Function FindNearestItem ( _
	point As Point _
) As Integer
C#
public int FindNearestItem(
	Point point
)

Parameters

point

Type: System.Drawing.Point

Coordinates of the position to test.

Return Value

The index of the item if successful, or -1 otherwise.

See Also

Reference