DocumentEvents2_Event.XMLAfterInsert event

Occurs when a user adds a new XML element to a document.

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

Event XMLAfterInsert As DocumentEvents2_XMLAfterInsertEventHandler
Dim instance As DocumentEvents2_Event
Dim handler As DocumentEvents2_XMLAfterInsertEventHandler

AddHandler instance.XMLAfterInsert, handler

If more than one element is added to the document at the same time (for example, when cutting and pasting XML), the event fires for each element that is inserted.