将工具提示添加到Excel加载项自定义功能区UI XML [英] Add tooltip to Excel Add-in Custom Ribbon UI XML

查看:475
本文介绍了将工具提示添加到Excel加载项自定义功能区UI XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个具有自定义功能区UI的Excel加载项。我想为按钮添加工具提示。我可以使用哪些XML属性来设置此属性?

I am creating an Excel Add-In that has a custom Ribbon UI. I would like to add a tooltip for my buttons. What XML attributes can I use to set this?

<button id="insertStuff" label="Insert Stuff" size="large" onAction="InsertStuff_EventHandler" imageMso="AddAccount" />


推荐答案

您可以使用 screentip和 supertip:

You can use "screentip" and "supertip":

<button id="insertStuff" screentip="Tooltip title" supertip="Long description" ...

BTW,在VS中编辑功能区XML时,通常应该具有自动完成功能。
如果不确定是否具有可用的Ribbon模式文件。

BTW, you should have autocomplete normally when you edit the ribbon XML in VS. If you don't make sure you have Ribbon schema file available.

这篇关于将工具提示添加到Excel加载项自定义功能区UI XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆