Inserts a new rule into the media block.
HRESULT insertRule( BSTR bstrRule, long lIndex, long *plNewIndex );
- [in] The parsable text that represents the rule. For rule sets, this contains both the selector and the style declaration. For at-rules, this specifies both the at-identifier and the rule content.
- [in] The index within the media block's rule collection. The rule is inserted immediately before this index. If the specified index is equal to the length of the media block's rule collection, the rule is added to the end of the media block.
- [out, retval] The index of the newly inserted rule within the media block's rule collection.
Returns one of the following values.
S_OK The operation completed successfully. W3CException_DOM_HIERARCHY_REQUEST_ERR The node cannot be inserted at the requested location. W3CException_DOM_INDEX_SIZE_ERR Index or size is negative, or greater than the allowed value. W3CException_DOM_SYNTAX_ERR An invalid string value is specified.