This document is archived and information here might be outdated.  Recommended version.


ISymbologyControl.HitTest Method (ArcObjects .NET 10.6 SDK)
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
);
[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

ISymbologyControl Interface