Share via


Window.PageScroll Method

Scrolls through the specified pane or window page by page.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub PageScroll ( _
    ByRef Down As Object, _
    ByRef Up As Object _
)
'Usage
Dim instance As Window
Dim Down As Object
Dim Up As Object

instance.PageScroll(Down, Up)
void PageScroll(
    ref Object Down,
    ref Object Up
)

Parameters

  • Down
    Type: System.Object%
    Optional Object. The number of pages to be scrolled down. If this argument is omitted, this value is assumed to be 1.
  • Up
    Type: System.Object%
    Optional Object. The number of pages to be scrolled up.

Remarks

The PageScroll method is available only if you're in print layout view or web layout view. This method doesn't affect the position of the insertion point.

If Down and Up are both specified, the window is scrolled by the difference of the arguments. For example, if Down is 2 and Up is 4, the window is scrolled up two pages.

See Also

Reference

Window Interface

Window Members

Microsoft.Office.Interop.Word Namespace