IHTMLStyle::get_paddingIHTMLStyle::get_padding*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLStyle::get_overflow
*Next Topic: IHTMLStyle::get_paddingBottom

IHTMLStyle::get_padding


HRESULT get_padding( 
    BSTR *p 
);

Retrieves the value of the CSS padding attribute for the element.

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

Up Top of Page


IHTMLStyle::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.

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


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.