public CSSKeyframesRule AppendRule(String rule)
        {
            var obj = CssParser.ParseKeyframeRule(rule);

            obj.ParentStyleSheet = _parent;
            obj.ParentRule       = this;
            _cssRules.InsertAt(_cssRules.Length, obj);
            return(this);
        }
Esempio n. 2
0
        public Int32 InsertRule(String rule, Int32 index)
        {
            var obj = CssParser.ParseRule(rule);

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

            return(this);
        }