Share via


XMLMapping.Delete Method

Deletes the XML mapping from the parent content control.

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

Syntax

'Declaration
Sub Delete
'Usage
Dim instance As XMLMapping

instance.Delete()
void Delete()

Remarks

This operation removes the XML mapping. Both the XML data and the content control remain in the document.

Examples

The following example deletes the XML mapping for all content controls in the active document that are currently mapped.

Dim objCC As ContentControl































































































































































































































































For Each objCC In ActiveDocument.ContentControls































































































































    If objCC.XMLMapping.IsMapped Then































































































































        objCC.XMLMapping.DeleteEnd IfNext

See Also

Reference

XMLMapping Interface

XMLMapping Members

Microsoft.Office.Interop.Word Namespace