다음을 통해 공유


IViewScroller.ScrollViewportVerticallyByPage Method

Scrolls the viewport vertically one page up or down.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Function ScrollViewportVerticallyByPage ( _
    direction As ScrollDirection _
) As Boolean
bool ScrollViewportVerticallyByPage(
    ScrollDirection direction
)
bool ScrollViewportVerticallyByPage(
    ScrollDirection direction
)
abstract ScrollViewportVerticallyByPage : 
        direction:ScrollDirection -> bool
function ScrollViewportVerticallyByPage(
    direction : ScrollDirection
) : boolean

Parameters

Return Value

Type: Boolean
true if the view contains one or more fully visible lines prior to scrolling, otherwise false.

Exceptions

Exception Condition
ArgumentOutOfRangeException

direction is not a ScrollDirection.

Remarks

When paging down, this method scrolls the view so that the line below the last fully-visible line is even with the top of the view. When paging up, this method scrolls the view so that the line above the first fully visible line is even with or slightly above the bottom of the view. It may be shifted up to prevent a partially-visible line at the top of the view. If there are no fully-visible lines in the view because the view is too short, the view is scrolled by exactly the viewport height. The view cannot be scrolled so that there is a gap between the top of the view and the first line of text.

.NET Framework Security

See Also

Reference

IViewScroller Interface

Microsoft.VisualStudio.Text.Editor Namespace