다음을 통해 공유


IBrowser3::addStyle (Windows CE 5.0)

Send Feedback

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

IBrowser::navigate

IBrowser3

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.