Export (0) Print
Expand All

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)

'Declaration
Event XMLBeforeDeleteAsDocumentEvents2_XMLBeforeDeleteEventHandler
'Usage
DiminstanceAsDocumentEvents2_EventDimhandlerAsDocumentEvents2_XMLBeforeDeleteEventHandlerAddHandler 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.

Show:
© 2014 Microsoft