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