This document is archived and information here might be outdated.  Recommended version.


IARPageLayout.Pan Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARPageLayout Interface > IARPageLayout.Pan Method
ArcGIS Developer Help

IARPageLayout.Pan Method

Pans the page layout 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 ARPageLayout display area in the specified direction, by a specified screen percentage. The extent of the ARPageLayout will change, but the ZoomPercent will remain the same.

A percentage of 0 will not actually offset the APPageLayout 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 ARPageLayout in the display area completely, so that any of the ARPageLayout 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 

See Also

IARPageLayout Interface | IARPageLayout.ZoomIn Method | IARPageLayout.ZoomOut Method | IARPageLayout.CenterAt Method