HitTest(Int32,Int32) Method
Returns information about the control at a specified point on the control surface.
Parameters
- x
- The horizontal position of the client coordinate.
- y
- The vertical position of the client coordinate.
Return Value
A
HitTestInfo object that contains information about the point.
The code below shows hit test information whenever the user clicks the mouse:
void _flex_BeforeMouseDown(object sender, BeforeMouseDownEventArgs e)
{
HitTestInfo hti = _flex.HitTest(e.X, e.Y);
Console.WriteLine("at {0},{1}: row {2} col {3} type {4}",
hti.X, hti.Y, hti.Row, hti.Column, hti.Type);
}