Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.
HRESULT retVal = object.scrollBy(x, y);
x [in]
Type: long
long that specifies the horizontal scroll offset, in pixels. Positive values scroll the window right, and negative values scroll it left.
y [in]
Type: long
long that specifies the vertical scroll offset, in pixels. Positive values scroll the window down, and negative values scroll it up.
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
There are no standards that apply here.
Please sign in to use this experience.
Sign in