示例#1
0
 internal void AddRangeInternal(TreeListViewItemCollection collection)
 {
     foreach (TreeListViewItem item in collection)
     {
         Add(item);
     }
 }
示例#2
0
        private TreeListViewItemCollection GetParentsInHierarch()
        {
            TreeListViewItemCollection treeListViewItemCollection = (Parent != null) ? Parent.GetParentsInHierarch() : new TreeListViewItemCollection();

            if (Parent != null)
            {
                treeListViewItemCollection.Add(Parent);
            }
            return(treeListViewItemCollection);
        }
示例#3
0
 internal void GetCheckedItems(ref TreeListViewItemCollection items)
 {
     if (Checked)
     {
         items.Add(this);
     }
     foreach (TreeListViewItem item in Items)
     {
         item.GetCheckedItems(ref items);
     }
 }
示例#4
0
 public void AddRange(TreeListViewItemCollection collection)
 {
     if (TreeListView != null)
     {
         TreeListView.BeginUpdate();
     }
     AddRangeInternal(collection);
     if (TreeListView != null)
     {
         TreeListView.BeginUpdate();
     }
 }
示例#5
0
 public TreeListViewItem()
 {
     _Items = new TreeListViewItemCollection(this);
 }