ArcObjects Library Reference (Display)  

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(
  IEnvelope** newExtent
);
[C++]

Parameters

newExtent [out, retval]

  newExtent is a parameter of type IEnvelope

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.PanMoveTo Method | IScreenDisplay.PanStop Method | IScreenDisplay.PanStart Method | IScreenDisplay.TrackPan Method