IBrowser3::addStyle
The addStyle method adds a default style for the current document and all subsequent documents displayed in the browser.
Syntax
HRESULT addStyle(
BSTR bstrStyle
);
Parameters
bstrStyle
[in] String that specifies a style using the HTML format for stylesheet rules, as shown in the following example of a stylesheet rule that specifies a border around paragraphs:"P {border: 1px solid;}"
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
Stylesheet rules applied with the addStyle method are reset by the IBrowser::navigate method.
Requirements
Pocket PC: Windows Mobile 2003 and later
OS Versions: Windows CE 4.0 and later
Header: webvw.h
Library: webvw.lib
See Also
Send feedback on this topic to the authors.
© 2005 Microsoft Corporation. All rights reserved.