更新:2007 年 11 月
当用户单击此 RibbonGallery 上的项时发生。
命名空间: 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 RibbonGallery
Dim handler As EventHandler(Of RibbonControlEventArgs)
AddHandler instance.Click, handler
[RibbonEventAttribute("onAction")]
public event EventHandler<RibbonControlEventArgs> Click
备注
每次用户单击此 RibbonGallery 上的 RibbonDropDownItem 时,都会引发此事件。这与 RibbonDropDown 控件的行为不同,后者仅当用户单击或导航至当前未选中的项时才引发 SelectionChanged 事件。
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
另请参见
参考
Microsoft.Office.Tools.Ribbon 命名空间