ArcObjects Library Reference  (Display)    

IScreenDisplay.DoScroll Method

Scrolls the screen by the specified amount.

[Visual Basic 6.0]
Sub DoScroll(
    ByVal xDelta As Long, _
    ByVal yDelta As Long, _
    ByVal updateScreen As Boolean _
)
[Visual Basic .NET]
Public Sub DoScroll ( _
    ByVal xDelta As Integer, _
    ByVal yDelta As Integer, _
    ByVal updateScreen As Boolean _
)
[C#]
public void DoScroll (
    int xDelta,
    int yDelta,
    bool updateScreen
);
[Java]
public void doScroll (
    int xDelta,
    int yDelta,
    Boolean updateScreen
)
throws
    IOException,
    AutomationException
[C++]
HRESULT DoScroll(
  long xDelta,
  long yDelta,
  VARIANT_BOOL updateScreen
);
[C++]

Parameters

xDelta [in]

  xDelta is a parameter of type long

yDelta [in]

  yDelta is a parameter of type long

updateScreen [in]

  updateScreen is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

ArcMap's scroll bars call this method to scroll the current display.  The updateScreen parameter specifies whether or not the display will be refreshed after the scroll.

[Visual Basic 6.0]

The following VBA code shows how this method may be used.

Public Sub ScrollDisplay()
  Dim pScreenDisplay As IScreenDisplay
  Dim pActiveView As IActiveView
  Dim pMxDoc As IMxDocument
  Set pMxDoc = Application.Document
  Set pActiveView = pMxDoc.ActiveView
  Set pScreenDisplay = pActiveView.ScreenDisplay
  pScreenDisplay.DoScroll 100, 100, TRUE
End Sub

See Also

IScreenDisplay Interface

 


Feedback Send feedback on this page