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


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

IMapControl4.Pan Method

Tracks the mouse while panning the MapControl.

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

Product Availability

Available with ArcGIS Engine.

Description

Pan preserves the MapScale property, but changes the Extent property.

Remarks

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

See Also

IMapControl4 Interface