| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 6 年前 | ||
| 6 年前 | ||
| 9 年前 | ||
| 6 年前 | ||
| 6 年前 |
ArcReaderControl map tools
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.
Language: C#, VB
Subject: Publisher
Organization: Esri, http://www.esri.com
Date: 10/17/2019
ArcObjects SDK: 10.8
Visual Studio: 2017, 2019
.NET Target Framework: 4.5
Resources
- ArcObjects .NET API Reference online
- Sample Data Download
- What's new
- Download the ArcObjects SDK for .Net from MyEsri.com
Usage
- Compile and run the sample from the provided code.
- Enter a valid file path of a Published Map File (PMF) from ArcMap and load.
- Click the Map button to display the data view.
- Use the tools to navigate around the focus map.
- Click the Layout button to display the layout view.
- Use the tools to navigate the data in any of the data frames on the page layout.
Licensing
| Development licensing | Deployment licensing |
|---|---|
| ArcGIS Desktop Basic: Publisher | ArcReader |
| ArcGIS Desktop Standard: Publisher | Engine |
| ArcGIS Desktop Advanced: Publisher | ArcGIS Desktop Basic |
| ArcGIS Desktop Standard | |
| ArcGIS Desktop Advanced |