Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

offsetLeft property

Retrieves the calculated left position of the object relative to the layout or coordinate parent, as specified by the IHTMLElement::offsetParent property.

Syntax

HRESULT value = object.get_offsetLeft(* p);

Property values

Type: long

the left position, in pixels.

Remarks

You can determine the location, width, and height of an object by using a combination of the IHTMLElement::offsetLeft, IHTMLElement::offsetTop, IHTMLElement::offsetHeight, and IHTMLElement::offsetWidth properties. These numeric properties specify the physical coordinates and dimensions of the object relative to the object's offset parent.

For more information about how to access the dimension and location of objects on the page through the Dynamic HTML (DHTML) Document Object Model (DOM), see Measuring Element Dimension and Location with CSSOM in Internet Explorer 9.

See also

Reference
IHTMLTextRangeMetrics::boundingHeight
IHTMLTextRangeMetrics::boundingLeft
IHTMLTextRangeMetrics::boundingTop
IHTMLTextRangeMetrics::boundingWidth

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.