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


IGraphicTracker.HitTest Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > EngineCore > ESRI.ArcGIS.EngineCore > Interfaces > IG > IGraphicTracker Interface > IGraphicTracker.HitTest Method
ArcGIS Developer Help

IGraphicTracker.HitTest Method

Returns the ID of the first graphic touched by the input window coordinates.

[Visual Basic .NET]
Public Function HitTest ( _
    ByVal x As Integer, _
    ByVal y As Integer _
) As Integer
[C#]
public int 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, ArcGIS Desktop, and ArcGIS Server.

Description

Returns the id of the graphic that was hit or -1 if no graphic was hit.

See Also

IGraphicTracker Interface