Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

offsetParent property

Retrieves a reference to the container object that defines the IHTMLElement::offsetTop and IHTMLElement::offsetLeft properties of the object.


HRESULT value = object.get_offsetParent(Element** p);

Property values

Type: Object

the container object.


Most of the time the IHTMLElement::offsetParent property returns the body object.

See also

Measuring Element Dimension and Location with CSSOM in Internet Explorer 9



Community Additions

© 2015 Microsoft