コード例 #1
0
ファイル: CSSNode.cs プロジェクト: ptomasroos/css-layout
        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();
        }
コード例 #2
0
ファイル: CSSNode.cs プロジェクト: ptomasroos/css-layout
 public int IndexOf(CSSNode child)
 {
     return children.IndexOf (child);
 }
コード例 #3
0
ファイル: CSSNode.cs プロジェクト: ptomasroos/css-layout
 public int IndexOf(CSSNode child)
 {
     return(children.IndexOf(child));
 }