ArcReaderControl map tools


Purpose
This sample demonstrates how to set the IARControl.CurrentTool property to the MapZoomIn, MapZoomOut, or MapPan tool to navigate around the map view or any of the data frames when the current view is a PageLayout.
The OnAfterScreenDraw event uses the IARMap.CanUndoExtent and CanRedoExtent properties to determine whether the IARMap.UndoExtent and RedoExtent methods can be used to undo or redo extent changes. The IARMap.SetExtent method is set to the result of the IARMap.GetFullExtent method to zoom to the full extent of the data in the map.

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Compile and run the sample from the provided code.
  2. Enter a valid file path of a Published Map File (PMF) from ArcMap and load.
  3. Click the Map button to display the data view.
  4. Use the tools to navigate around the focus map.
  5. Click the Layout button to display the layout view.
  6. Use the tools to navigate the data in any of the data frames on the page layout.

MapTools.vb Form file.
AssemblyInfo.vb Assembly information.
Download the VB.NET files
MapTools.cs Form file.
AssemblyInfo.cs Assembly information.
Download the C# files

Download the files for all languages




Development licensing Deployment licensing
ArcGIS for Desktop Basic: Publisher ArcReader
ArcGIS for Desktop Standard: Publisher Engine
ArcGIS for Desktop Advanced: Publisher ArcGIS for Desktop Basic
ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced