Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  ScrollTop
element class : ScrollTop getter

Description

Gets the scrolled distance of the scroll view in the vertical direction.

Syntax

elementInstance.ScrollTop

Arguments

None

Return value

ClassDescription
intThe scrolled distance of the scroll view in the vertical direction, in pixels.

Sample code

//anyElement is an any instance of element type.

int scrollTop = anyElement.ScrollTop;

Notes

It's a wrapper of the MSHTML.IHTMLElement2.scrollTop.

Links for reference

Copyright © Rice All rights reserved.