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
- direction
Type: Microsoft.VisualStudio.Text.Editor.ScrollDirection
The direction in which to scroll.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.