Contents Index Topic Contents | ||
Previous Topic: IHTMLStyle::get_marginRight Next Topic: IHTMLStyle::get_overflow |
IHTMLStyle::get_marginTop
HRESULT get_marginTop( VARIANT *p );Retrieves the value of the CSS margin-top attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute. See margin-top for details. This parameter receives NULL if the attribute is not set.
See also put_marginTop
IHTMLStyle::put_marginTop
HRESULT put_marginTop( VARIANT v );Sets the value of the CSS margin-top attribute for the element. The attribute determines the height of the top margin for the element.
- Returns S_OK if successful, or an error value otherwise.
- v
- String or value specifying the top margin. The height can be positive or negative. See margin-top for details. Set this parameter to NULL to remove the attribute.
See also get_marginTop
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.