Spread WinForms 15
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / GeometryDrawing Class / HitTest Method
The x-coordinate at which to retrieve hit test information.
The y-coordinate at which to retrieve hit test information.
The behind shape.
The painting rectangle of the shape.


In This Topic
HitTest Method (GeometryDrawing)
In This Topic
Gets the hit test information at the position of a control.
Syntax
'Declaration
 
Public MustOverride Function HitTest( _
   ByVal x As Double, _
   ByVal y As Double, _
   ByVal shape As Shape, _
   ByVal shapeRect As Rectangle _
) As Boolean
 
'Usage
 
Dim instance As GeometryDrawing
Dim x As Double
Dim y As Double
Dim shape As Shape
Dim shapeRect As Rectangle
Dim value As Boolean
 
value = instance.HitTest(x, y, shape, shapeRect)

Parameters

x
The x-coordinate at which to retrieve hit test information.
y
The y-coordinate at which to retrieve hit test information.
shape
The behind shape.
shapeRect
The painting rectangle of the shape.

Return Value

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