Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
OS Versions: Windows CE .NET 4.0 and later.
Header: webvw.h
Library: wvuuid.lib
See Also
Send Feedback on this topic to the authors