NodeInsertAndDeleteEventArgs Interface
Provides data for the AfterInsert and BeforeDelete events of an XMLNode control, and for the AfterInsert and BeforeDelete events of an XMLNodes control.
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
| Name | Description | |
|---|---|---|
![]() | InUndoRedo | Gets a value that indicates whether an action was a result of an undo or redo command. |
The following code example demonstrates event handlers for the AfterInsert and BeforeDelete events. These event handlers display a message box before an XMLNode is deleted from the document, and after an XMLNode is added to the document. The example also uses the RemoveChild method to delete a node and programmatically raise the BeforeDelete event. This example assumes that the current document contains an XMLNode named CustomerNode that contains a child node named CustomerDateNode.
Show:
