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)
Usage
WithEvents documentEvents2_Event1 As DocumentEvents2_Event
Function documentEvents2_Event1_XMLBeforeDelete(DeletedRange As Range, _
OldXMLNode As XMLNode, _
InUndoRedo As Boolean) As Void
Handles documentEvents2_Event1.XMLBeforeDelete
End Function
Syntax
Event XMLBeforeDelete As DocumentEvents2_XMLBeforeDeleteEventHandler
event DocumentEvents2_XMLBeforeDeleteEventHandler XMLBeforeDelete;
event DocumentEvents2_XMLBeforeDeleteEventHandler^ XMLBeforeDelete;
void add_XMLBeforeDelete(DocumentEvents2_XMLBeforeDeleteEventHandler handler);
void remove_XMLBeforeDelete(DocumentEvents2_XMLBeforeDeleteEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.
Remarks
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.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
DocumentEvents2_Event Interface
Microsoft.Office.Interop.Word Namespace