DocumentEvents2_Event.XMLBeforeDelete event

Occurs when a user deletes an XML element from a document.

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

Event XMLBeforeDelete As DocumentEvents2_XMLBeforeDeleteEventHandler
Dim instance As DocumentEvents2_Event
Dim handler As DocumentEvents2_XMLBeforeDeleteEventHandler

AddHandler instance.XMLBeforeDelete, handler

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