IHTMLStyleSheet::addRuleIHTMLStyleSheet::addRule*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLStyleSheet::addImport
*Next Topic: IHTMLStyleSheet::get_cssText

IHTMLStyleSheet::addRule


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

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

bstrSelector
String specifying the selector for the new rule.
bstrStyle
String specifying 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.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.