다음을 통해 공유


IViewScroller.ScrollViewportVerticallyByLines Method

Scrolls the viewport vertically by multiple lines up or down.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

‘선언
Sub ScrollViewportVerticallyByLines ( _
    direction As ScrollDirection, _
    count As Integer _
)
void ScrollViewportVerticallyByLines(
    ScrollDirection direction,
    int count
)
void ScrollViewportVerticallyByLines(
    ScrollDirection direction, 
    int count
)
abstract ScrollViewportVerticallyByLines : 
        direction:ScrollDirection * 
        count:int -> unit 
function ScrollViewportVerticallyByLines(
    direction : ScrollDirection, 
    count : int
)

Parameters

  • count
    Type: System.Int32
    The number of lines to scroll up or down.

Exceptions

Exception Condition
ArgumentOutOfRangeException

direction is not a ScrollDirection, or 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.

.NET Framework Security

See Also

Reference

IViewScroller Interface

Microsoft.VisualStudio.Text.Editor Namespace