NodeNestingLevel – The nesting level of a TreeView’s node

' Returns the nesting level of a TreeView's Node object' (returns zero for root nodes.)Function NodeNestingLevel(ByVal Node As Node) As Integer    Do Until (Node.Parent Is Nothing)        NodeNestingLevel = NodeNestingLevel + 1        Set Node = Node.Parent    LoopEnd Function

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: