更新:2007 年 11 月
在用户单击按钮时发生。
命名空间: Microsoft.Office.Tools.Ribbon
程序集: Microsoft.Office.Tools.Common.v9.0(在 Microsoft.Office.Tools.Common.v9.0.dll 中)
语法
声明
<RibbonEventAttribute("onAction")> _
Public Event Click As EventHandler(Of RibbonControlEventArgs)
用法
Dim instance As RibbonButton
Dim handler As EventHandler(Of RibbonControlEventArgs)
AddHandler instance.Click, handler
[RibbonEventAttribute("onAction")]
public event EventHandler<RibbonControlEventArgs> Click
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
另请参见
参考
Microsoft.Office.Tools.Ribbon 命名空间