Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / Picture Class / HitTest Method / HitTest(WindowsGraphics,Double,Double,Rectangle,Boolean,Double) Method
The x-coordinate at which to retrieve hit test information.
The y-coordinate at which to retrieve hit test information.
The client rectangle of the shape.
true if the hittest is for connection action; otherwise, false.
The scaling factor for displaying.


In This Topic
    HitTest(WindowsGraphics,Double,Double,Rectangle,Boolean,Double) Method
    In This Topic
    Gets the hit test information at the position of a control.
    Syntax
    'Declaration
     
    
    Public Overloads Overrides NotOverridable Function HitTest( _
       ByVal graphics As WindowsGraphics, _
       ByVal x As Double, _
       ByVal y As Double, _
       ByVal rect As Rectangle, _
       ByVal connecting As Boolean, _
       ByVal zoomFactor As Double _
    ) As HitTestInfo
    'Usage
     
    
    Dim instance As Picture
    Dim graphics As WindowsGraphics
    Dim x As Double
    Dim y As Double
    Dim rect As Rectangle
    Dim connecting As Boolean
    Dim zoomFactor As Double
    Dim value As HitTestInfo
     
    value = instance.HitTest(graphics, x, y, rect, connecting, zoomFactor)
    public override HitTestInfo HitTest( 
       WindowsGraphics graphics,
       double x,
       double y,
       Rectangle rect,
       bool connecting,
       double zoomFactor
    )

    Parameters

    graphics
    x
    The x-coordinate at which to retrieve hit test information.
    y
    The y-coordinate at which to retrieve hit test information.
    rect
    The client rectangle of the shape.
    connecting
    true if the hittest is for connection action; otherwise, false.
    zoomFactor
    The scaling factor for displaying.

    Return Value

    The hit test information at the position of a control.
    See Also