Click to return to the Reusing Browser Technology home page    
IHTMLStyleSheet::addImpor...     IHTMLStyleSheet::get_cssT...     IHTMLStyleSheet Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLStyleSheet::addRule Method


Creates a new style rule using the given selector and style assignment.

Syntax

HRESULT addRule( 
    BSTR bstrSelector,
    BSTR bstrStyle,
    long lIndex, 
    long *plNewIndex 
);

Parameters

bstrSelector
String that specifies the selector for the new rule.
bstrStyle
String that specifies the style assignments for this style rule.
lIndex
Zero-based position in the style sheet where the style rule is to be placed.
plNewIndex
Address of a variable that receives the new zero-based index of the style rule.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.