示例#1
0
        int GetIndentationLevel(int index)
        {
            var level    = 0;
            var parentId = m_TreeView.GetParentIdForIndex(index);

            while (parentId != -1)
            {
                ++level;
                parentId = m_TreeView.viewController.GetParentId(parentId);
            }

            return(level);
        }