internal void AddRangeInternal(TreeListViewItemCollection collection) { foreach (TreeListViewItem item in collection) { Add(item); } }
private TreeListViewItemCollection GetParentsInHierarch() { TreeListViewItemCollection treeListViewItemCollection = (Parent != null) ? Parent.GetParentsInHierarch() : new TreeListViewItemCollection(); if (Parent != null) { treeListViewItemCollection.Add(Parent); } return(treeListViewItemCollection); }
internal void GetCheckedItems(ref TreeListViewItemCollection items) { if (Checked) { items.Add(this); } foreach (TreeListViewItem item in Items) { item.GetCheckedItems(ref items); } }
public void AddRange(TreeListViewItemCollection collection) { if (TreeListView != null) { TreeListView.BeginUpdate(); } AddRangeInternal(collection); if (TreeListView != null) { TreeListView.BeginUpdate(); } }
public TreeListViewItem() { _Items = new TreeListViewItemCollection(this); }