Share via


Overview | Methods | Fields | This Package | All Packages

OverviewMethodsFieldsThis PackageAll Packages

ListBox.indexFromPoint

Retrieves the zero-based index of the item at the specified coordinates.

Syntax

public final int indexFromPoint( Point p )

public final int indexFromPoint( int x**, int** y )

Parameters

point

A Point object containing the coordinates for the point.

x

The x-coordinate of the point.

y

The y-coordinate of the point.

Return Value

Returns the zero-based index of item at the specified point; if there is no item at the specified point, returns ListBox.NOMATCHES.