Click to return to the Reusing Browser Technology home page    
IHTMLBodyElement::get_tex...     IHTMLBodyElement::get_vLi...     IHTMLBodyElement Interfac...    
Web Workshop  |  Reusing Browser Technology

IHTMLBodyElement::get_topMargin Method


Retrieves the margin, in pixels, for the top of the page and overrides the default margin.

Syntax

HRESULT get_topMargin(
    VARIANT *p
);

Parameters

p
Address of a VARIANT structure that receives the top margin. For details, see the topMargin property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

See Also

get_bottomMargin, get_leftMargin, get_rightMargin

IHTMLBodyElement::put_topMargin Method


Sets the margin, in pixels, for the top of the page and overrides the default margin.

Syntax

HRESULT put_topMargin(
    VARIANT v
);

Parameters

v
VARIANT structure that contains either a string or numeric value that specifies the top margin to set. For details, see the topMargin property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

See Also

put_bottomMargin, put_leftMargin, put_rightMargin


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.