DocumentEvents2_Event.ContentControlOnExit event

Office 2013 and later

Occurs when a user leaves a content control.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

event DocumentEvents2_ContentControlOnExitEventHandler ContentControlOnExit

Important noteImportant

This event fires only for the content control that you exit and not for parent content controls. For example, if you have a text box content control nested inside a group content control, and you move the cursor from inside the text box content control and into another place in the document, this event fires only once for the text box content control; it does not fire for the parent group content control.

For information about using events with the _Document object, see Using Events with the Document Object.