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

Description

Gets the vertical offset from the element of the offsetParent property.

Syntax

elementInstance.OffsetTop

Arguments

None

Return value

ClassDescription
intThe vertical offset from the element of the offsetParent property, in pixels.

Sample code

//anyElement is an any instance of element type.

int top = anyElement.OffsetTop;

Notes

It's a wrapper of the MSHTML.IHTMLElement.offsetTop.

Links for reference

Copyright © Rice All rights reserved.