IViewScroller.ScrollViewportVerticallyByLine(ScrollDirection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Scrolls the viewport vertically one line up or down.
public:
void ScrollViewportVerticallyByLine(Microsoft::VisualStudio::Text::Editor::ScrollDirection direction);
public:
void ScrollViewportVerticallyByLine(Microsoft::VisualStudio::Text::Editor::ScrollDirection direction);
void ScrollViewportVerticallyByLine(Microsoft::VisualStudio::Text::Editor::ScrollDirection direction);
public void ScrollViewportVerticallyByLine (Microsoft.VisualStudio.Text.Editor.ScrollDirection direction);
abstract member ScrollViewportVerticallyByLine : Microsoft.VisualStudio.Text.Editor.ScrollDirection -> unit
Public Sub ScrollViewportVerticallyByLine (direction As ScrollDirection)
Parameters
- direction
- ScrollDirection
The direction in which to scroll.
Exceptions
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.