public virtual object Clone()
        {
            NodeViewItem node = new NodeViewItem();

            node.CanEdit    = this.CanEdit;
            node.Enabled    = this.Enabled;
            node.Font       = this.Font;
            node.ForeColor  = this.ForeColor;
            node.Height     = this.Height;
            node.IsExpanded = this.IsExpanded;
            node.Name       = this.Name;
            foreach (NodeViewItem one in this.NodeViewItems)
            {
                node.NodeViewItems.Add(one.Clone() as NodeViewItem);
            }
            node.ShowLines            = this.ShowLines;
            node.ShowNomalState       = this.ShowNomalState;
            node.ShowPlusMinus        = this.ShowPlusMinus;
            node.Tag                  = this.Tag;
            node.Text                 = this.Text;
            node.Visible              = this.Visible;
            node.Width                = this.Width;
            node.eNodeViewStyle       = this.eNodeViewStyle;
            node.SystemColor          = this.SystemColor;
            node.TitleBorder          = this.TitleBorder;
            node.TitleBackgroundBegin = this.TitleBackgroundBegin;
            node.TitleBackgroundEnd   = this.TitleBackgroundEnd;
            //
            return(node);
        }
 private void CollapseAll_DG(NodeViewItem nodeViewItem)
 {
     foreach (NodeViewItem one in nodeViewItem.NodeViewItems)
     {
         one.SetIsExpand(false);
         this.CollapseAll_DG(one);
     }
     nodeViewItem.SetIsExpand(false);
 }
 private void ExpandAll_DG(NodeViewItem nodeViewItem)
 {
     foreach (NodeViewItem one in nodeViewItem.NodeViewItems)
     {
         one.SetIsExpand(true);
         this.ExpandAll_DG(one);
     }
     nodeViewItem.SetIsExpand(true);
 }