IHTMLStyle::get_marginIHTMLStyle::get_margin*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLStyle::get_listStyleType
*Next Topic: IHTMLStyle::get_marginBottom

IHTMLStyle::get_margin


HRESULT get_margin( 
    BSTR *p 
);

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

p
Address of a variable that receives the top, right, bottom, and left margins, in that order. See margin for details. Set this parameter to NULL to remove the attribute.

This function combines the functionality of the get_marginTop, get_marginRight, get_marginBottom, and get_marginLeft functions.

See also put_margin

Up Top of Page


IHTMLStyle::put_margin


HRESULT put_margin( 
    BSTR v 
);

Sets the value of the CSS margin attribute for the element. The attribute sets the top, right, bottom, and left margins for the text of the element.

v
String that specifies the top, right, bottom, and left margins, in that order. See margin for details. Set this parameter to NULL to remove the attribute.

This function combines the functionality of the put_marginTop, put_marginRight, put_marginBottom, and put_marginLeft functions.

See also get_margin


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