DataGridView::DataGridViewAccessibleObject::HitTest Method (Int32, Int32)
.NET Framework (current version)
Retrieves the child object at the specified screen coordinates.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- x
-
Type:
System::Int32
The horizontal screen coordinate.
- y
-
Type:
System::Int32
The vertical screen coordinate.
Return Value
Type: System.Windows.Forms::AccessibleObject^An AccessibleObject that represents an object at the given screen coordinates, or null if no object is at the specified location.
The HitTest method returns an AccessibleObject that represents part of the DataGridView. If the object itself is at the specified location, this method returns the calling object. The following table describes what the AccessibleObject represents.
Area clicked | Object represented by accessible object |
|---|---|
Column header cell | |
Row header cell | |
Cell | |
Scroll bar |
.NET Framework
Available since 2.0
Available since 2.0
Show: