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 (Point)

Retrieves the index of the item at the given coordinates.

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

Parameters

p
Point object with the coordinates 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