For Each rb As RibbonMenu.Tab In RibbonTabs
Output.Show(rb.name)
For Each gp As RibbonMenu.Group In rb.Groups
Output.Show(gp .name)
For Each itm As RibbonMenu.RibbonItem In gp.Items
Output.Show(itm .name)
--------在递归中实现
For Each itm2 As RibbonMenu.RibbonItem In itm.Items
Output.Show(itm2.Name)
Next
---------
Next
Next
Next