Starting from DotNetBrowser 1.8.3 it is possible to obtain absolute or relative DOMElement position using the following properties:

  • DOMElement.OffsetTop
  • DOMElement.OffsetLeft
  • DOMElement.OffsetWidth
  • DOMElement.OffsetHeight
  • DOMElement.ClientTop
  • DOMElement.ClientLeft
  • DOMElement.ClientWidth
  • DOMElement.ClientHeight
  • DOMElement.ScrollTop
  • DOMElement.ScrollLeft
  • DOMElement.ScrollWidth
  • DOMElement.ScrollHeight

These properties are read-only and correspond to the properties of the HTML DOM Element Object.

Starting from DotNetBrowser 1.8.4 one more property has been added -DOMElement.BoundingClientRect. This property Returns bounds of the element and its position relative to the top-left of the viewport of the current document.