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


IARPageLayout.HitTestMap Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARPageLayout Interface > IARPageLayout.HitTestMap Method
ArcGIS Developer Help

IARPageLayout.HitTestMap Method

Returns the first map present in the page layout at the specified coordinates. If there isn't a map or the coordinates are not over a map, nothing will be returned.

[Visual Basic .NET]
Public Function HitTestMap ( _
    ByVal x As Integer, _
    ByVal y As Integer _
) As ARMap
[C#]
public ARMap HitTestMap (
    int x,
    int y
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

The HitTestMap method takes x and y screen coordinates supplied in pixels and returns the first ARMap it finds at the given location. The method returns nothing of no ARMap is found.

See Also

IARPageLayout Interface