NetXP 3.0 Reference

ListBar.HitTest Method (Point, Boolean)

Checks if there is an object which interacts with the mouse in the control under the specified point.

[Visual Basic]
Overloads Public Function HitTest( _
   ByVal pt As Point, _
   ByVal forDragDrop As Boolean _
) As IMouseHandler
[C#]
public IMouseHandler HitTest(
   Point pt,
   bool forDragDrop
);

Parameters

pt
The point to test.
forDragDrop
Whether the hit testing is being performed for a drag-drop operation or not. During drag-drop, the hittest rectangle is relaxed so it includes the entire rectangle and not just the icon and text.

Return Value

If there is a mouse object under the point then its IMouseHandler interface, otherwise null.

See Also

ListBar Class | NETXP.Controls.Bars Namespace | ListBar.HitTest Overload List