This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARPageLayout Interface > IARPageLayout.HitTestMap Method (ArcObjects .NET 10.5 SDK) |
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 );
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.