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


IPageLayoutControl.Pan Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IP > IPageLayoutControl Interface > IPageLayoutControl.Pan Method
ArcGIS Developer Help

IPageLayoutControl.Pan Method

Tracks the mouse while panning the PageLayoutControl.

[Visual Basic .NET]
Public Sub Pan ( _
)
[C#]
public void Pan (
);
[C++]
HRESULT Pan(
void
);

Product Availability

Available with ArcGIS Engine.

Description

Pan preserves the scale of the PageLayout, but changes the Extent property.

Errors Returned

1017 800a03f9: The current tracking or panning must complete before this method can execute
1022 800a03fe: The control requires a valid window to perform this method

Remarks

Use the Pan method within the IPageLayoutControlEvents::OnMouseDown event to allow the user to pan contents of the PageLayoutControl. The IPageLayoutControlEvents::OnMouseMove event will be triggered during the pan, but no IPageLayoutControlEvents::OnMouseUp event will occur. The ESC key on the keyboard can be used during panning to cancel the Pan.

See Also

IPageLayoutControl Interface