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

Description

Scroll through the browser to offsets from the current scroll position of the browser which is specified in pixels.

Syntax

browserInstance.ScrollBy(int xOffset, int yOffset)

Arguments

ClassNameDescription
xOffsetintx-offset from the current scroll position of the browser
yOffsetinty-offset from the current scroll position of the browser

Return value

None.

Sample code

//b is a instance of browser type.

b.ScrollBy(100, 100);//Scroll through to offsets (100, 100) from the current scroll position.

Notes

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

Links for reference

Copyright © Rice All rights reserved.