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


ITopologyGraph.EnumHitTest Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITopologyGraph.EnumHitTest Method

Locates all elements of the graph within searchRadius units of the query point; whichElements is a bitwise combination of esriTopologyElement values.

[Visual Basic .NET]
Public Function EnumHitTest ( _
    ByVal whichElements As Integer, _
    ByVal QueryPoint As IPoint, _
    ByVal searchRadius As Double, _
    ByRef hitInfo As IEnumTGHitInfo _
) As Boolean
[C#]
public bool EnumHitTest (
    int whichElements,
    IPoint QueryPoint,
    double searchRadius,
    ref IEnumTGHitInfo hitInfo
);
[C++]
HRESULT EnumHitTest(
  long whichElements,
  IPoint* QueryPoint,
  double searchRadius,
  IEnumTGHitInfo** hitInfo,
  VARIANT_BOOL* hit
);
[C++]

Parameters whichElements whichElements is a parameter of type long QueryPoint
QueryPoint is a parameter of type IPoint searchRadius searchRadius is a parameter of type double hitInfo [out]
hitInfo is a parameter of type IEnumTGHitInfo hit [out, retval] hit is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The ITopologyGraph::EnumHitTest method allows to retrieve all the TopologyElements (TopologyNodes and/or TopologyEdges) located within a distance from an input point. This could be used to get TopologyElements based on a user mouse click. It returns an enumerator of type IEnumTGHitInfo. Each element of the enumerator contains a reference to a TopologyElement object found within the search radius, the point where the topology element was hit and the distance from the hit point to the input point. The search radius distance must use the same distance units as the Topology or MapTopology units; no conversion is performed if they are not equal.

Remarks

Note: whichElements is a bitwise combination of esriTopologyElement values

See Also

ITopologyGraph Interface