コード例 #1
0
        private TreeListViewItemCollection GetParentsInHierarch()
        {
            TreeListViewItemCollection temp = Parent != null?Parent.GetParentsInHierarch() : new TreeListViewItemCollection();

            if (Parent != null)
            {
                temp.Add(Parent);
            }
            return(temp);
        }
コード例 #2
0
 internal void GetCheckedItems(ref TreeListViewItemCollection items)
 {
     if (Checked)
     {
         items.Add(this);
     }
     foreach (TreeListViewItem item in Items)
     {
         item.GetCheckedItems(ref items);
     }
 }