NetXP 3.0 Reference

CommandBar.HitTest Method 

Performs a hit test for an item.

[Visual Basic]
Public Function HitTest( _
   ByVal point As Point, _
   ByVal includeDisabled As Boolean _
) As Integer
[C#]
public int HitTest(
   Point point,
   bool includeDisabled
);

Parameters

point
Point where user clicked.
includeDisabled
Hit test disabled items as well?

Return Value

Item index at that location. -1 if no items were hit.

See Also

CommandBar Class | NETXP.Controls.Bars Namespace