This topic has not yet been rated - Rate this topic

marginWidth property

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

Syntax

HRESULT value = object.put_marginWidth( v);HRESULT value = object.get_marginWidth(* p);

Property values

Type: VARIANT

the width, in pixels.

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 IHTMLRuleStyle::marginLeft or IHTMLRuleStyle::marginRight 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

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.