IViewScroller.ScrollViewportVerticallyByLine Method

Scrolls the viewport vertically one line up or down.

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

Syntax

声明
Sub ScrollViewportVerticallyByLine ( _
    direction As ScrollDirection _
)
void ScrollViewportVerticallyByLine(
    ScrollDirection direction
)
void ScrollViewportVerticallyByLine(
    ScrollDirection direction
)
abstract ScrollViewportVerticallyByLine : 
        direction:ScrollDirection -> unit 
function ScrollViewportVerticallyByLine(
    direction : ScrollDirection
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

direction is not a ScrollDirection.

Remarks

The viewport always contains at least one visible line along its top edge, and the distance scrolled is clipped to ensure that this always remains true.

.NET Framework Security

See Also

Reference

IViewScroller Interface

Microsoft.VisualStudio.Text.Editor Namespace