简体   繁体   English

如何使用C#4.0访问为Visio 2010使用Ribbon.xml创建的自定义选项卡/按钮

[英]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.

相关问题 如何使用C#4.0从xml内容中删除特定的xml元素? - how to remove specific xml elements from the xml content using C#4.0? 如何使用 C#4.0 在 contextmenustrip 中添加子菜单项? - How to add sub menu items in contextmenustrip using C#4.0? Office 功能区:使用 XML 创建功能区时如何访问控件 - Office Ribbon: How to access a control when the ribbon was created using XML 使用C#4.0中的RowFilter在DataView中过滤编号 - Filter number in a DataView using RowFilter in C#4.0 如何使用C#4.0 Win Form Application隐藏TreeView控件中某个TreeNode的复选框? - How to hide checkbox of the certain TreeNode in TreeView control using C#4.0 Win Form Application? 如何在Mono和Visual Studio 2010(C#4.0)上跳过延迟签名组件的强名称验证? - how to skip the strong name verification for delay signed assembilies on Mono and Visual studio 2010(C#4.0)? 如何聚焦 Outlook 2010 自定义功能区选项卡 - How to focus an Outlook 2010 custom ribbon tab C#4.0使用winmm.dll播放超过192kbps的.mp3文件 - C#4.0 Issues playing .mp3 files over 192kbps using winmm.dll C# VSTO - 缓慢加载 Outlook 加载项(由 Ribbon.xml 引起?) - C# VSTO - Slowly loading Outlook Add-in (caused by Ribbon.xml?) WPF中的C#4.0 GetWindowRect - C#4.0 GetWindowRect in wpf
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM