参考
For Each r As RibbonMenu.Tab In RibbonTabs output.show(r.text) For Each g As RibbonMenu.Group In r.Groups output.show(g.text) NextNext