Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

DocumentEvents2_Event.XMLAfterInsert Event

Occurs when a user adds a new XML element to a document.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

WithEvents documentEvents2_Event1 As DocumentEvents2_Event
Function documentEvents2_Event1_XMLAfterInsert(NewXMLNode As XMLNode, _
	InUndoRedo As Boolean) As Void
	Handles documentEvents2_Event1.XMLAfterInsert
End Function

event DocumentEvents2_XMLAfterInsertEventHandler XMLAfterInsert;
 void add_XMLAfterInsert(DocumentEvents2_XMLAfterInsertEventHandler handler);
 void remove_XMLAfterInsert(DocumentEvents2_XMLAfterInsertEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

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

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms