/// <summary> /// 查询子item在父folder中的index /// </summary> /// <returns>The item index in folder.</returns> public int GetItemIndexInFolder(TreeItem item) { int index = -1; for (int i = 0; i < SubItemNums; i++) { if (item.Equals(ItemList [i])) { index = i; } } return(index); }