|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IS > ISymbologyControl Interface > ISymbologyControl.HitTest Method (ArcObjects .NET 10.5 SDK) | 
Returns the item at the specified x and y coordinates.
[Visual Basic .NET] Public Function HitTest ( _ ByVal X As Integer, _ ByVal Y As Integer _ ) As IStyleGalleryItem
[C#] public IStyleGalleryItem HitTest ( int X, int Y );
[C++]
HRESULT HitTest(
  long X,
  long Y,
  IStyleGalleryItem** ppStyleItem
);
[C++]
Parameters X [in] X is a parameter of type long Y [in] Y is a parameter of type long ppStyleItem [out, retval]
ppStyleItem is a parameter of type IStyleGalleryItem
Returns the item at the specified x and y coordinates (in pixels). If no item is found, returns Nothing.