# Locating the Pointer Using HitTest

Learn how to use the HitTest method of the Spread component to locate the pointer in code and customize user interaction.

## Content

You can locate the pointer at any time in code using the **HitTest** method of the Spread component. Whether you are meeting accessibility standards and displaying information for the user based on pointer location, or want to provide additional support based on pointer location, you can use this capability to customize the display and user interaction.
The list of members corresponding to this capability are listed here:

| **Component Area** | **Class Name** |
| -------------- | ---------- |
| Spread component | FpSpread.[HitTest](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.FpSpread.HitTest.html) method |
| Spread component | [HitTestType](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.HitTestType.html) enumeration |
| Spread component | [HitTestInformation](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.HitTestInformation.html) class |
| Row or column header | [HeaderHitTestInformation](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.HeaderHitTestInformation.html) class |
| Outline (range group) area | [RangeGroupHitTestInformation](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.RangeGroupHitTestInformation.html) class |
| Tab strip | [TabStripHitTestInformation](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.TabStripHitTestInformation.html) class |
| Viewport | [ViewportHitTestInformation](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.ViewportHitTestInformation.html) class |

## See Also

[Returning Information for a Clicked Cell](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-cell-indicators/spwin-cell-clickinfo)
[Preventing a Cell from Receiving Focus](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-cell-indicators/spwin-cell-focusstop)
[Customizing the Focus Indicator for a Cell](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-interactcell/spwin-cell-indicators/spwin-cellfocusind)