ICSSStyleSheet.DeleteRule

ICSSStyleSheet.DeleteRule method

The CSSStyleSheet method deleteRule() removes a rule from the stylesheet object.

public void DeleteRule(int index)
ParameterTypeDescription
indexInt32The index into the stylesheet’s CSSRuleList indicating the rule to be removed.

Remarks

CSSOM defines APIs (including generic parsing and serialization rules) for Media Queries, Selectors, and of course CSS itself.

Reference

CSS Working Group - The CSS Working Group is the W3C working group chartered to develop Cascading Style Sheets (CSS).CSS Object Model (CSSOM) - CSSOM defines APIs (including generic parsing and serialization rules) for Media Queries, Selectors, and of course CSS itself.CSS Object Model (CSSOM) # dom-cssstylesheet-deleterule – The CSSOM definition.

See Also