Share via


IBrowser::put_MarginWidth

The MarginWidth property gets or sets the left and right margin widths before displaying the text in a frame.

To set the value of the MarginWidth property, call the property method described here.

To get the value of the MarginWidth property, see the get_MarginWidth property method.

Syntax

HRESULT put_MarginWidth(
  long newVal
);

Parameters

  • newVal
    [in] Variable that contains the margin width to set in pixels.

Return Values

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

  • S_OK
    The method completed successfully.

Remarks

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

Requirements

Pocket PC: Windows Mobile 2002 and later
OS Versions: Windows CE 4.0 and later
Header: webvw.h
Library: webvw.lib

See Also

IBrowser

IBrowser::put_MarginHeight

Send feedback on this topic to the authors.

© 2005 Microsoft Corporation. All rights reserved.