TreeViewItem.IndexOf
From Jeremie Leroy - XOJO Controls Wiki
Method
TreeViewItem.IndexOf ( Item As TreeViewItem ) As Integer
Used to search for a TreeViewItem in the sub Items array. Returns the index of the Item that contains the matching value. The TreeViewItem array is zero-based.