This method returns the number of Node objects that fit in the internal area of a TreeView control.
treeview.GetVisibleCount
Returns the number of visible Node objects.
The number of lines that fit in a window determines the number of Node objects. The count includes the partially visible item at the bottom of the list.