XMLNode::AfterInsert Event

 

Occurs when the user adds a new XMLNode control to the document.

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

event NodeInsertAndDeleteEventHandler^ AfterInsert {
	void add(NodeInsertAndDeleteEventHandler^ value);
	void remove(NodeInsertAndDeleteEventHandler^ value);
}

The following code example demonstrates event handlers for the AfterInsert and BeforeDelete events. The code displays 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.

No code example is currently available or this language may not be supported.
Return to top
Show: