NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ListBox.IndexFromPoint (Int32, Int32)

Retrieves the index of the item at the given coordinates.

[Visual Basic]
Overloads Public Function IndexFromPoint( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As Integer
[C#]
public int IndexFromPoint(
   int x,
   int y
);
[C++]
public: int IndexFromPoint(
   int x,
   int y
);
[JScript]
public function IndexFromPoint(
   x : int,
   y : int
) : int;

Parameters

x
x coordinate of point to test.
y
y coordinate of point to test.

Return Value

the index of item that is under said point, or ListBox.NOMATCHES if there is no item under this location.

See Also

ListBox Class | ListBox Members | System.WinForms Namespace | ListBox.IndexFromPoint Overload List