ArcObjects Library Reference (Controls)  

ISymbologyControl.HitTest Method

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

Product Availability

Available with ArcGIS Engine.

Description

Returns the item at the specified x and y coordinates (in pixels). If no item is found, returns Nothing.

See Also

ISymbologyControl Interface