RibbonComboBox.TextChanged 事件 (2007 system)

更新:2007 年 11 月

在用户更改 RibbonComboBox 中的文本时发生。

命名空间:  Microsoft.Office.Tools.Ribbon
程序集:  Microsoft.Office.Tools.Common.v9.0(在 Microsoft.Office.Tools.Common.v9.0.dll 中)

语法

声明
<RibbonEventAttribute("onChange")> _
Public Event TextChanged As EventHandler(Of RibbonControlEventArgs)
用法
Dim instance As RibbonComboBox
Dim handler As EventHandler(Of RibbonControlEventArgs)

AddHandler instance.TextChanged, handler
[RibbonEventAttribute("onChange")]
public event EventHandler<RibbonControlEventArgs> TextChanged

备注

在下列三种情况下,RibbonComboBox 将引发此事件:用户在更改文本之后按下 Enter 键;用户在更改文本之后将输入焦点移到另一个控件;或者用户从列表中选择一个与当前显示的文本不同的项。通过对 Text 属性指定新值的方式更改文本时,不会引发此事件。

权限

另请参见

参考

RibbonComboBox 类

RibbonComboBox 成员

Microsoft.Office.Tools.Ribbon 命名空间

其他资源

功能区对象模型概述