DocumentEvents2_Event.XMLBeforeDelete 事件

定义

用户从文档中删除 XML 元素时发生。Occurs when a user deletes an XML element from a document.

public:
 event Microsoft::Office::Interop::Word::DocumentEvents2_XMLBeforeDeleteEventHandler ^ XMLBeforeDelete;
event Microsoft.Office.Interop.Word.DocumentEvents2_XMLBeforeDeleteEventHandler XMLBeforeDelete;
member this.XMLBeforeDelete : Microsoft.Office.Interop.Word.DocumentEvents2_XMLBeforeDeleteEventHandler 
Event XMLBeforeDelete As DocumentEvents2_XMLBeforeDeleteEventHandler 

事件类型

DocumentEvents2_XMLBeforeDeleteEventHandler

注解

如果同时从文档中删除了多个元素(例如,剪切和粘贴 XML 时),则删除的每个元素都会激发该事件。If more than one element is deleted from the document at the same time (for example, when cutting and pasting XML), the event fires for each element that is deleted.

适用于