Export (0) Print
Expand All

scrollTo method

Scrolls the window to the specified x- and y-offset.

Syntax


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

Parameters

x [in]

Type: long

long that specifies the horizontal scroll offset, in pixels.

y [in]

Type: long

long that specifies the vertical scroll offset, in pixels.

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.

Remarks

The specified offsets are relative to the upper-left corner of the window.

See also

IHTMLWindow2::scrollBy

 

 

Community Additions

ADD
Show:
© 2014 Microsoft