ComponentOne Menus and Toolbars for WinForms
HitTest(Int32,Int32) Method

C1.Win.C1Command.4 Assembly > C1.Win.C1Command Namespace > C1TopicBar Class > HitTest Method : HitTest(Int32,Int32) Method
The horizontal position of the client coordinate.
The vertical position of the client coordinate.
Returns information about the control at a specified point on the control surface.
Syntax
'Declaration
 
Public Overloads Function HitTest( _
   ByVal x As System.Integer, _
   ByVal y As System.Integer _
) As C1TopicBarHitTestInfo
public C1TopicBarHitTestInfo HitTest( 
   System.int x,
   System.int y
)

Parameters

x
The horizontal position of the client coordinate.
y
The vertical position of the client coordinate.

Return Value

A C1TopicBarHitTestInfo object that contains information about the point.
Remarks
This method is useful when handling the System.Windows.Forms.Control.MouseMove, System.Windows.Forms.Control.MouseDown events or similar. It allows you to determine whether the mouse is over a specific link, page title, etc.
See Also

Reference

C1TopicBar Class
C1TopicBar Members
Overload List