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


IScreenDisplay.PanMoveTo Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Display)  

IScreenDisplay.PanMoveTo Method

Pans to a new point.

[Visual Basic .NET]
Public Sub PanMoveTo ( _
    ByVal mouseLocation As IPoint _
)
[C#]
public void PanMoveTo (
    IPoint mouseLocation
);
[C++]
HRESULT PanMoveTo(
  IPoint* mouseLocation
);
[C++]

Parameters mouseLocation [in]
mouseLocation is a parameter of type IPoint

Product Availability

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

Remarks

PanMoveTo pans the display by calculating an offset distance between the start point supplied to PanStart and the destination point provided to this method.  The recording cache is automatically redrawn each time PanMoveTo is called. Use the envelope PanStop returns to truly refresh the 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