IViewScroller.ScrollViewportHorizontallyByPixels(Double) 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 horizontally by distanceToScroll
.
public:
void ScrollViewportHorizontallyByPixels(double distanceToScroll);
public:
void ScrollViewportHorizontallyByPixels(double distanceToScroll);
void ScrollViewportHorizontallyByPixels(double distanceToScroll);
public void ScrollViewportHorizontallyByPixels (double distanceToScroll);
abstract member ScrollViewportHorizontallyByPixels : double -> unit
Public Sub ScrollViewportHorizontallyByPixels (distanceToScroll As Double)
Parameters
- distanceToScroll
- Double
The distance to scroll the viewport in the text rendering coordinate system. Positive values scroll the viewport to the right, and negative values scroll the viewport to the left.
Exceptions
distanceToScroll
is NaN.
Remarks
A view cannot be scrolled horizontally if word wrap is enabled. If word wrap is disabled, the horizontal offset of the view must be between [0.0, max(0.0, formatted content width - viewport width)].