DocumentEvents2_Event.XMLAfterInsert 事件

定义

用户向文档中添加新 XML 元素时发生。Occurs when a user adds a new XML element to a document.

public:
 event Microsoft::Office::Interop::Word::DocumentEvents2_XMLAfterInsertEventHandler ^ XMLAfterInsert;
event Microsoft.Office.Interop.Word.DocumentEvents2_XMLAfterInsertEventHandler XMLAfterInsert;
member this.XMLAfterInsert : Microsoft.Office.Interop.Word.DocumentEvents2_XMLAfterInsertEventHandler 
Event XMLAfterInsert As DocumentEvents2_XMLAfterInsertEventHandler 

事件类型

DocumentEvents2_XMLAfterInsertEventHandler

注解

如果同时向文档中添加多个元素(例如,剪切和粘贴 XML 时),则插入的每个元素都会激发该事件。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.

适用于