ArcObjects Library Reference (Controls)  

ISymbologyControlDefault.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
);
[C++]

Parameters

X [in]   X is a parameter of type long Y [in]   Y is a parameter of type long

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

ISymbologyControlDefault Interface