ICSSMediaRule.InsertRule

ICSSMediaRule.InsertRule method

The insertRule() method of the CSSGroupingRule interface adds a new CSS rule to a list of CSS rules.

public long InsertRule(String rule, long index)
ParameterTypeDescription
ruleStringThe media rule as CSSOMString.
indexInt64An optional index at which to insert the rule; defaults to 0.

Return Value

The insertRule(rule, index) method returns the result of invoking insert a CSS rule rule into the child CSS rules at index.

See Also