参考
For Each t As RibbonMenu.RibbonItem In ConfigBar.Items If t.LargeImage IsNot Nothing Then t.LargeImage.save("d:\test.jpg") Else If t.SmallImage IsNot Nothing Then t.SmallImage.save("d:\test.jpg") Else 'dddd End IfNext