IViewScroller.ScrollViewportVerticallyByLines(ScrollDirection, Int32) Method

Definition

Scrolls the viewport vertically by multiple lines up or down.

public:
 void ScrollViewportVerticallyByLines(Microsoft::VisualStudio::Text::Editor::ScrollDirection direction, int count);
public:
 void ScrollViewportVerticallyByLines(Microsoft::VisualStudio::Text::Editor::ScrollDirection direction, int count);
void ScrollViewportVerticallyByLines(Microsoft::VisualStudio::Text::Editor::ScrollDirection direction, int count);
public void ScrollViewportVerticallyByLines (Microsoft.VisualStudio.Text.Editor.ScrollDirection direction, int count);
abstract member ScrollViewportVerticallyByLines : Microsoft.VisualStudio.Text.Editor.ScrollDirection * int -> unit
Public Sub ScrollViewportVerticallyByLines (direction As ScrollDirection, count As Integer)

Parameters

direction
ScrollDirection

The direction in which to scroll.

count
Int32

The number of lines to scroll up or down.

Exceptions

count is negative.

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.

Applies to