IHTMLBodyElement::leftMargin Property
Sets or gets the left margin for the entire body of the document, which overrides the default margin.
Syntax
HRESULT IHTMLBodyElement::get_leftMargin(VARIANT *p); HRESULT IHTMLBodyElement::put_leftMargin(VARIANT v);
Parameters
- p
Pointer to a variable of type VARIANT of type VT_BSTR or VT_I4 that receives the left margin, in pixels.- v
VARIANT of type VT_BSTR or VT_I4 that specifies the left margin, in pixels.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
If the value is an empty string, the left margin is on the left edge.
By default, when you set the value of this property, the opposite margin is set to the same value.