Class CssMediaRule
- Namespace
- SharpVectors.Dom.Css
- Assembly
- SharpVectors.Css.dll
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 class CssMediaRule : CssRule, ICssMediaRule, ICssRule
- Inheritance
-
CssMediaRule
- Implements
- Inherited Members
Constructors
Properties
- CssRules
A list of all CSS rules contained within the media block.
- Media
A list of media types for this rule
- Type
The type of the rule. The expectation is that binding-specific casting methods can be used to cast down from an instance of the CSSRule interface to the specific derived interface implied by the type.
Methods
- DeleteRule(ulong)
Used to delete a rule from the media block.
- GetStylesForElement(XmlElement, string, MediaList, CssCollectedStyleDeclaration)
Used to find matching style rules in the cascading order
- InsertRule(string, ulong)
Used to insert a new rule into the media block