GetHitColumnAndRowFromPoint

Top  Previous  Next

 

GetHitColumnAndRowFromPoint(Point p, out hitTest, out rowIndex, out columnIndex)

 

 

GetHitColumnAndRowFromPoint sets the values for the 3 "out" items:

hitTest

Returns ListHitTestType, which is an ENUM type that has the following values:

None

Header

Resize

Data

Total

TreeNode

The type returned is based on what part of the LIST control was touched by the mouse.

rowIndex – an INT data type that returns the index of the row the mouse is over

colIndex - an INT data type that returns the index of the col the mouse is over

If hitTest returns ListHitTestType.None , GetHitColumnAndRowFromPoint will return FALSE.