ArcObjects Library Reference (PublisherControls)  

IARMap.Pan Method

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
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

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. 

Errors Returned

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.

See Also

IARMap Interface | IARMap.ZoomIn Method | IARMap.ZoomOut Method | IARMap.CenterAt Method