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


IScreenDisplay.PanStop Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IS > IScreenDisplay Interface > IScreenDisplay.PanStop Method
ArcGIS Developer Help

IScreenDisplay.PanStop Method

Stops panning and returns new visible bounds.

[Visual Basic .NET]
Public Function PanStop ( _
) As IEnvelope
[C#]
public IEnvelope PanStop (
);
[C++]
HRESULT PanStop(
void
);

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

PanStop creates an Envelope that should be used to reset the extent of the active view.  Because PanMoveTo redraws only the recording cache (bitmap), there are typically blank areas in the display.  Call IActiveView::Refresh after calling PanStop to invalidate the entire display.

The typical sequence for using the pan methods is as follows:

See TrackPan for an alternative panning approach.

See Also

IScreenDisplay Interface | IScreenDisplay.PanStop Method | IScreenDisplay.PanStart Method | IScreenDisplay.PanMoveTo Method | IScreenDisplay.TrackPan Method