IViewScroller::ScrollViewportVerticallyByPixels Method (Double)
Visual Studio 2015
Scrolls the viewport vertically by the specified distance.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Parameters
- distanceToScroll
-
Type:
System::Double
The distance to scroll in the text rendering coordinate system. Positive values scroll the viewport up, and negative values scroll the viewport down.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | distanceToScroll is NaN. |
This can be very slow for large numbers of pixels. You should avoid using this method to scroll more than the height of the viewport in either direction.The viewport always contains at least one visible line along its top edge, and the distance scrolled will be clipped to ensure that this always remains true.
Show: