[英]How to Access Custom tab/buttons created using Ribbon.xml for Visio 2010 using C#4.0
All, 所有,
I have created Visio 2010 Addin project in C# 4.0. 我已经在C#4.0中创建了Visio 2010外接程序项目。 i creaded the custom ribbon using Ribbon.xml.
我使用Ribbon.xml读取了自定义功能区。 I need to access custom tabs or buttons Id's to changes the label/name of control at runtime.
我需要访问自定义标签或按钮ID,以在运行时更改控件的标签/名称。
Help Appreciated. 帮助表示赞赏。
-Sach -萨克
That callback functions give you IRibbonControl sender. 该回调函数为您提供了IRibbonControl发送者。 I use sender.Id as a reference and lookup the other properties in the Ribbon.XML string from the GetCustomUI() function.
我使用sender.Id作为参考,并从GetCustomUI()函数中查找Ribbon.XML字符串中的其他属性。 If you change another control's label (referenced via getLabel="myFunction" in the XML), be sure to use IRibbonUI.InvalidateControl to refresh it.
如果更改另一个控件的标签(通过XML中的getLabel =“ myFunction”引用),请确保使用IRibbonUI.InvalidateControl刷新它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.