Exemple #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();
        }
Exemple #2
0
 public int IndexOf(CSSNode child)
 {
     return children.IndexOf (child);
 }
Exemple #3
0
 public int IndexOf(CSSNode child)
 {
     return(children.IndexOf(child));
 }