com.aspose.html.dom.css

Interface ICSSMediaRule

  • All Superinterfaces:
    ICSSRule


    @DOMObjectAttribute
     @DOMNameAttribute(name="CSSMediaRule")
    public interface ICSSMediaRule
    extends ICSSRule

    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.

    • Method Detail

      • insertRule

        @DOMNameAttribute(name="insertRule")
        long insertRule(String rule,
                                                              long index)

        Used to insert a new rule into the media block.

        Parameters:
        rule - The media rule.
        index - The index.
        Returns:
        The inserted index.
      • deleteRule

        @DOMNameAttribute(name="deleteRule")
        void deleteRule(long index)

        Used to delete a rule from the media block.

        Parameters:
        index - The index.