Interface ICSSMediaRule
Interface ICSSMediaRule
Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML.dll (25.2.0)
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.
[ComVisible(true)]
[DOMName("CSSMediaRule")]
[DOMObject]
public interface ICSSMediaRule : ICSSRule
Implements
Properties
CSSRules
A list of all CSS rules contained within the media block.
[DOMName("cssRules")]
ICSSRuleList CSSRules { get; }
Property Value
Media
A list of media types for this rule.
[DOMName("media")]
IMediaList Media { get; }
Property Value
Methods
DeleteRule(long)
Used to delete a rule from the media block.
[DOMName("deleteRule")]
void DeleteRule(long index)
Parameters
index
long
The index.
InsertRule(string, long)
Used to insert a new rule into the media block.
[DOMName("insertRule")]
long InsertRule(string rule, long index)
Parameters
rule
string
The media rule.
index
long
The index.
Returns
The inserted index.