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)

Usage

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

Syntax

Event XMLAfterInsert As DocumentEvents2_XMLAfterInsertEventHandler
event DocumentEvents2_XMLAfterInsertEventHandler XMLAfterInsert;
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.

Remarks

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.

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

Other Resources

DocumentEvents2_Event Members