Beispiel #1
0
        public void AddChildAt(CSSNode child, int i)
        {
            if (child.parent != null) {
                throw new InvalidOperationException ("Child already has a parent, it must be removed first.");
            }

            children.Insert(i, child);
            child.parent = this;
            Dirty();
        }
Beispiel #2
0
 public int IndexOf(CSSNode child)
 {
     return children.IndexOf (child);
 }
Beispiel #3
0
 public int IndexOf(CSSNode child)
 {
     return(children.IndexOf(child));
 }