public CSSKeyframesRule AppendRule(String rule) { var obj = CssParser.ParseKeyframeRule(rule); obj.ParentStyleSheet = _parent; obj.ParentRule = this; _cssRules.InsertAt(_cssRules.Length, obj); return(this); }
public Int32 InsertRule(String rule, Int32 index) { var obj = CssParser.ParseRule(rule); obj.ParentStyleSheet = _parent; obj.ParentRule = this; _cssRules.InsertAt(index, obj); return(index); }
public CSSStyleSheet InsertRule(String rule, Int32 index) { if (index >= 0 && index <= _cssRules.Length) { var value = CssParser.ParseRule(rule); _cssRules.InsertAt(index, value); } return(this); }