ICSSMediaRule Interface

ICSSMediaRule interface

The CSSMediaRule interface represents a @media rule in a CSS style sheet. A @media rule can be used to delimit style rules for specific media types.

public interface ICSSMediaRule : ICSSRule

Properties

NameDescription
CSSRules { get; }The cssRules property of the CSSGroupingRule interface returns a CSSRuleList containing a collection of CSSRule objects.
Media { get; }The read-only media property of the CSSMediaRule interface MediaList represents the intended destination medium for style information.

Methods

NameDescription
DeleteRule(long)The deleteRule() method of the CSSGroupingRule interface removes a CSS rule from a list of child CSS rules.
InsertRule(string, long)The insertRule() method of the CSSGroupingRule interface adds a new CSS rule to a list of CSS rules.

See Also