Contents Index Topic Contents | ||
Previous Topic: IHTMLRuleStyle::put_marginTop Next Topic: IHTMLRuleStyle::put_marginRight |
IHTMLRuleStyle::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
IHTMLRuleStyle::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.