i am developing vsto and i would like to hide some controls on the ribbon Particulary i need to hide menu - Change Styles on styles group in home tab. I tried to do it via xml:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="Ribbon_Load">
<ribbon>
<tabs>
<tab idMso="TabHome">
<group idMso="GroupStyles">
<menu idMso="ChangeStylesMenu" visible="0"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
but menu is still visible it looks like i cant get this control. My question is anyone can get this control? Via xml or via code? By the way what is the way to get ribboncontrols programmatically. I know that there is RibbonGroup class but i dont know how to load it(how to get it via id) If i could do it i would get all items belongs to it. Any ideas?