IViewScroller::ScrollViewportVerticallyByLines Method (ScrollDirection, Int32)
Visual Studio 2015
Scrolls the viewport vertically by multiple lines up or down.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Parameters
- direction
-
Type:
Microsoft.VisualStudio.Text.Editor::ScrollDirection
The direction in which to scroll.
- count
-
Type:
System::Int32
The number of lines to scroll up or down.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | direction is not a ScrollDirection, or count is negative. |
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.
Show: