This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Interfaces > IS > IScreenDisplay Interface > IScreenDisplay.PanStop Method (ArcObjects .NET 10.5 SDK) |
Stops panning and returns new visible bounds.
[Visual Basic .NET] Public Function PanStop ( _ ) As IEnvelope
[C#] public IEnvelope PanStop ( );
[C++]
HRESULT PanStop(
IEnvelope** newExtent
);
[C++]
Parameters newExtent [out, retval]
newExtent is a parameter of type IEnvelope
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.
IScreenDisplay Interface | IScreenDisplay.PanStop Method | IScreenDisplay.PanStart Method | IScreenDisplay.PanMoveTo Method | IScreenDisplay.TrackPan Method