Contents Index Topic Contents | ||
Previous Topic: IHTMLRuleStyle::put_padding Next Topic: IHTMLRuleStyle::put_border |
IHTMLRuleStyle::get_padding
HRESULT get_padding( BSTR *p );Retrieves the value of the CSS padding attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the amount of top, right, bottom, and left padding, in that order. If this parameter specifies only one value, it applies to all sides. If it specifies two or three, the missing values are taken from the opposite side. See padding for details. This parameter receives NULL if the attribute is not set.
This function combines the functionality of the get_paddingTop, get_paddingRight, get_paddingBottom, and get_paddingLeft functions.
See also put_padding
IHTMLRuleStyle::put_padding
HRESULT put_padding( BSTR v );Sets the value of the CSS padding attribute for the element. The attibute determines the amount of space between the border and the element's content.
- Returns S_OK if successful, or an error value otherwise.
- v
- String that specifies the amount of top, right, bottom, and left padding, in that order. See padding for details. Set this parameter to NULL to remove the attribute.
This function combines the functionality of the put_paddingTop, put_paddingRight, put_paddingBottom, and put_paddingLeft functions.
See also get_padding
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.