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
);
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
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.
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