Home Cooker Classes Others Rice CookerGX
Classes  >  browser  >  ScrollTo(int,int)
browser class : ScrollTo(int,int) method

Description

Scroll through the browser to offsets from the top-left corner of the browser which is specified in pixels.

Syntax

browserInstance.ScrollTo(int xOffset, int yOffset)

Arguments

ClassNameDescription
xOffsetintx-offset from the top-left corner of the browser
yOffsetinty-offset from the top-left corner of the browser

Return value

None.

Sample code

//b is a instance of browser type.

b.ScrollTo(100, 100);//Scroll through to offsets (100, 100).

Notes

It's a wrapper of the MSHTML.IHTMLWindow2.scrollTo(Long,Long).

Links for reference

Copyright © Rice All rights reserved.