IViewScroller::ScrollViewportVerticallyByLine Method (ScrollDirection)

 

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)

void ScrollViewportVerticallyByLine(
	ScrollDirection direction
)

Parameters

direction
Type: Microsoft.VisualStudio.Text.Editor::ScrollDirection

The direction in which to scroll.

Exception Condition
ArgumentOutOfRangeException

direction is not a ScrollDirection.

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.

Return to top
Show: