ContentControlBase.Entering 事件 (2007 系統)

更新: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 引發。

如需處理事件的詳細資訊,請參閱使用事件

使用權限

請參閱

參考

ContentControlBase 類別

ContentControlBase 成員

Microsoft.Office.Tools.Word 命名空間