DocumentEvents2_Event.ContentControlOnEnter 事件

定义

当用户进入内容控件时发生。Occurs when a user enters a content control.

public:
 event Microsoft::Office::Interop::Word::DocumentEvents2_ContentControlOnEnterEventHandler ^ ContentControlOnEnter;
event Microsoft.Office.Interop.Word.DocumentEvents2_ContentControlOnEnterEventHandler ContentControlOnEnter;
member this.ContentControlOnEnter : Microsoft.Office.Interop.Word.DocumentEvents2_ContentControlOnEnterEventHandler 
Event ContentControlOnEnter As DocumentEvents2_ContentControlOnEnterEventHandler 

事件类型

DocumentEvents2_ContentControlOnEnterEventHandler

注解

重要说明:此事件仅对您输入的内容控件(而不是针对父内容控件)触发。 Important: This event fires only for the content control that you enter and not for parent content controls. 例如,如果您的一个文本框内容控件嵌入内容组控件,您要将光标置于该文本框内容控件,则此事件仅对该文本框内容控件触发一次,而不对内容父组控件触发。For example, if you have a text box content control nested inside a group content control, and you place the cursor inside the text box content control, this event fires only once for the text box content control; it does not fire for the parent group content control.

有关将事件与对象一起使用的信息 _Document ,请参阅使用 Document 对象的事件For information about using events with the _Document object, see Using Events with the Document Object

适用于