Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  ScrollIntoView(bool)
element class : ScrollIntoView(bool) method

Description

Scrolls the window so that the element is displayed at the specified position.

Syntax

elementInstance.ScrollIntoView(bool alignWithTop)

Arguments

ClassNameDescription
boolalignWithTopValue that indicates the display position.

Return value

None

Sample code

//anyElement is any instance of element type.

anyElement.ScrollIntoView(fasle);

Notes

It's a wrapper of the MSHTML.IHTMLElement.scrollIntoView(Bool).

If argument is true, scrolls the window so that top of the element is visible at the top of the window.

If argument is false, scrolls the window so that bottom of the element is visible at the bottom of the window.

Links for reference

Copyright © Rice All rights reserved.