public virtual void Insert(int index, TOCTreeNode node) { if (this.m_pNode != null) { node.SetParent(this.m_pNode); node.SetTreeView(this.m_pNode.TreeView); } else { node.SetTreeView(this.m_pTreeView); } this.m_pTOCTreeNodeCollection.Insert(index, node); }
public virtual int Add(TOCTreeNode pNode) { if (this.m_pNode != null) { pNode.SetParent(this.m_pNode); pNode.SetTreeView(this.m_pNode.TreeView); } else { pNode.SetTreeView(this.m_pTreeView); } return(this.m_pTOCTreeNodeCollection.Add(pNode)); }
public virtual TOCTreeNode Add(string name) { TOCTreeNode node = new TOCTreeNode(name); if (this.m_pNode != null) { node.SetParent(this.m_pNode); node.SetTreeView(this.m_pNode.TreeView); } else { node.SetTreeView(this.m_pTreeView); } this.m_pTOCTreeNodeCollection.Add(node); return(node); }