ContentControlBase.Entering 事件 (2007 system)
更新:2007 年 11 月
当用户在内容控件中单击,或者以编程方式将光标移到内容控件中时发生。
命名空间: Microsoft.Office.Tools.Word
程序集: Microsoft.Office.Tools.Word.v9.0(在 Microsoft.Office.Tools.Word.v9.0.dll 中)
语法
声明
Public Event Entering As EventHandler(Of ContentControlEnteringEventArgs)
用法
Dim instance As ContentControlBase
Dim handler As EventHandler(Of ContentControlEnteringEventArgs)
AddHandler instance.Entering, handler
public event EventHandler<ContentControlEnteringEventArgs> Entering
备注
如果内容控件嵌套在另一个内容控件内,则 Entering 事件只对嵌套的控件引发,而不对父控件引发。例如,如果用户在嵌套在 GroupContentControl 中的 PlainTextContentControl 中单击,则此事件只对 PlainTextContentControl 引发;而不对 GroupContentControl 引发。
有关处理事件的更多信息,请参见使用事件。
权限
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。