HRESULT removeRule( long lIndex );
- [in] long that specifies the index value of the rule to be deleted from the style sheet. If an index is not provided, the first rule in the rules collection is removed.
Returns S_OK if successful, or an error value otherwise.
The document does not automatically reflow when the rule is removed. To see the change, you must reflow the document . You can reflow the objects affected using a number of methods. For example, you can reflow the style change only on affected text by setting the text equal to itself. Alternately, you can reload the entire document using the IHTMLLocation::reload method. When you use the IHTMLTable::refresh method on a table, its content is reflowed.