Programmatic access to Ribbon controls in VSTO
问题 I am writing C# with VSTO in Visual Studio 2008 in order to create an add-in for Office 2007. After I have defined a custom ribbon tab using XML, how do I obtain references to the various controls in the Ribbon? I would like to be able to do things like programatically manipulate the content of an EditBox. 回答1: Direct programmatic access to ribbon control properties through callbacks is not possible. However, Visual Studio has a visual ribbon designer that does allow direct access. I'll