ComponentOne Menus and Toolbars for WinForms
C1.Win.C1Command.4.8 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.

In This Topic
    HitTest(Int32,Int32) Method
    In This Topic
    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.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also