Export (0) Print
Expand All

IHTMLFrameBase::marginWidth Property

Sets or retrieves the left and right margin widths before displaying the text in a frame.

Syntax


HRESULT IHTMLFrameBase::get_marginWidth(VARIANT *p);HRESULT IHTMLFrameBase::put_marginWidth(VARIANT v);

Parameters

p
Pointer to a variable of type VARIANT of type VT_I4 that receives the width, in pixels.
v
VARIANT of type VT_I4 that specifies the width, in pixels.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Margins cannot be less than 1 pixel or so large that the text cannot be displayed.

If IHTMLFrameBase::marginWidth is specified but IHTMLFrameBase::marginHeight is not, IHTMLFrameBase::marginHeight is set to 0.

If the document hosted in the frame or iframe has margin-left or margin-right properties set either through Cascading Style Sheets (CSS) or through the IHTMLBodyElement::leftMargin or IHTMLBodyElement::rightMargin properties of the body element, then this property is ignored.

See Also

IHTMLFrameBase::marginHeight

Community Additions

ADD
Show:
© 2014 Microsoft