Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

scrollBy method

Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.

Syntax


HRESULT retVal = object.scrollBy(x, y);

Parameters

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.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information

There are no standards that apply here.

See also

IHTMLWindow2::scrollTo

 

 

Community Additions

ADD
Show:
© 2015 Microsoft