Contents Index Topic Contents | ||
Previous Topic: IHTMLStyle::get_pixelLeft Next Topic: IHTMLStyle::get_pixelWidth |
IHTMLStyle::get_pixelTop
HRESULT get_pixelTop( long *p );Retrieves the top position of the element, in pixels.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the top position.
Unlike the top attribute, this attribute's value is an integer, not a string, and is always interpreted in pixels.
See also put_pixelTop
IHTMLStyle::put_pixelTop
HRESULT put_pixelTop( long v );Sets the top position of the element, in pixels.
- Returns S_OK if successful, or an error value otherwise.
- v
- Long integer value specifying the top position. Setting this property changes the value of the top position without changing the units designator.
Unlike the top attribute, this attribute's value is an integer, not a string, and is always interpreted in pixels.
See also get_pixelTop
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.