IHTMLBodyElement::rightMargin Property

Sets or gets the right margin for the entire body of the document.

Syntax


HRESULT IHTMLBodyElement::get_rightMargin(VARIANT *p);HRESULT IHTMLBodyElement::put_rightMargin(VARIANT v);

Parameters

p
Pointer to a variable of type VARIANT of type VT_BSTR or VT_I4 that receives the right margin, in pixels.
v
VARIANT of type VT_BSTR or VT_I4 that specifies the right margin, in pixels.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

If the value is an empty string, the right margin is on the right edge.

The value set on the property overrides the default margin.

By default, when you set the value of this property, the opposite margin is set to the same value.

Community Additions

ADD
Show:
© 2014 Microsoft