This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARMap Interface > IARMap.Pan Method (ArcObjects .NET 10.4 SDK) |
Pans the map by a factor in a specified direction.
[Visual Basic .NET] Public Sub Pan ( _ ByVal direction As esriARDirection, _ ByVal screenPercentage As Double _ )
[C#] public void Pan ( esriARDirection direction, double screenPercentage );
Pans the ARMap display area in the specified direction, by a specified screen percentage. The extent of the ARMap will change, but the MapScale will remain the same.
A percentage of 0 will not actually offset the ARMap in the display area, a percentage of 25 will pan the current visible extent by a quarter of its width, and a percentage of 100 will offset the ARMap in the display area completely, so that any of the ARMap visible before the Pan will no longer be visible.
2031 800A07EF: Invalid pan percentage, the pan percentage must be in the range 0 to 100
2032 800A07F0: Invalid pan direction
2116 800A0844: Unable to change extent when extent type is fixed extent.
IARMap Interface | IARMap.ZoomIn Method | IARMap.ZoomOut Method | IARMap.CenterAt Method