Syncfusion.Grid.Windows


The row index.
The column index.
A System.Windows.Forms.MouseEventArgs with data about the mouse event.
The current controller requested to handle this mouse event.

OnHitTest Method (GridCellRendererBase)

This method is called to determine whether the cell renderer wants to receive mouse events for the give cell at the given coordinates.
Syntax
'Declaration
 
Protected Overridable Function OnHitTest( _
   ByVal rowIndex As Integer, _
   ByVal colIndex As Integer, _
   ByVal e As MouseEventArgs, _
   ByVal controller As IMouseController _
) As Integer
'Usage
 
Dim instance As GridCellRendererBase
Dim rowIndex As Integer
Dim colIndex As Integer
Dim e As MouseEventArgs
Dim controller As IMouseController
Dim value As Integer
 
value = instance.OnHitTest(rowIndex, colIndex, e, controller)
protected virtual int OnHitTest( 
   int rowIndex,
   int colIndex,
   MouseEventArgs e,
   IMouseController controller
)

Parameters

rowIndex
The row index.
colIndex
The column index.
e
A System.Windows.Forms.MouseEventArgs with data about the mouse event.
controller
The current controller requested to handle this mouse event.

Return Value

Non-zero hit context value if you request to handle the mouse event; zero if you vote not to handle the mouse event.
Remarks
Override this method and return GridHitTestContext.Cell (or any other non-zero value) to force mouse messages (OnMouseDown, OnMouseHover, OnMouseUp) being called for the cell renderer.
AssemblyVersion

Syncfusion.Grid.Windows: 18.2460.0.44

See Also